mirror of
https://github.com/BeamMP/BeamMP-Server.git
synced 2026-04-02 22:06:26 +00:00
add total calls to stats
This commit is contained in:
@@ -22,6 +22,7 @@ struct Stats {
|
||||
double min;
|
||||
double max;
|
||||
size_t n;
|
||||
size_t total_calls;
|
||||
};
|
||||
|
||||
/// Calculates and stores the moving average over K samples of execution time data
|
||||
@@ -41,6 +42,7 @@ struct UnitExecutionTime {
|
||||
|
||||
private:
|
||||
boost::synchronized_value<boost::circular_buffer<Duration>> m_measurements;
|
||||
size_t m_total_calls {};
|
||||
};
|
||||
|
||||
/// Holds profiles for multiple units by name. Threadsafe.
|
||||
|
||||
Reference in New Issue
Block a user