mirror of
https://github.com/mod-playerbots/mod-playerbots
synced 2025-11-29 15:58:20 +08:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user