mirror of
https://github.com/BeamMP/BeamMP-Server.git
synced 2026-10-23 16:41:25 +00:00
add total calls to stats
This commit is contained in:
1 parent
946c1362e1
commit
40533c04bc
3 files changed
+5
No files matched your search
@@ -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