add total calls to stats

This commit is contained in:
Lion Kortlepel authored and Lion committed 2024-03-06 10:27:22 +01:00
1 parent 946c1362e1
commit 40533c04bc
3 files changed
+5

No files matched your search

+2
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.