PerformanceMonitor enhancements - better formatting of results, subtotals for different types, now measured in microseconds (needed to accurately measure impact things that take < a millisecond to do but which are done VERY often)

This commit is contained in:
Fuzz
2024-07-08 13:58:36 +10:00
parent 1f8b34778c
commit f05d66b4a4
2 changed files with 89 additions and 32 deletions

View File

@@ -17,9 +17,9 @@ typedef std::vector<std::string> PerformanceStack;
struct PerformanceData
{
uint32 minTime;
uint32 maxTime;
uint32 totalTime;
uint64 minTime;
uint64 maxTime;
uint64 totalTime;
uint32 count;
std::mutex lock;
};
@@ -43,7 +43,7 @@ class PerformanceMonitorOperation
PerformanceData* data;
std::string const name;
PerformanceStack* stack;
std::chrono::milliseconds started;
std::chrono::microseconds started;
};
class PerformanceMonitor