add total calls to stats

This commit is contained in:
Lion Kortlepel
2024-03-06 10:24:25 +01:00
committed by Lion
parent 946c1362e1
commit 40533c04bc
3 changed files with 5 additions and 0 deletions

View File

@@ -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.