1 #ifndef RHESUS_PROFILER_H_
2 #define RHESUS_PROFILER_H_
9 #include "../Tasks/Mutex.h"
26 static void StartActivity(
string taskName);
27 static double End(
string taskName);
29 static double GetAverageTime(
string taskName);
30 static double GetLastTime(
string taskName);
31 static double GetMaxTime(
string taskName);
33 static std::hash_map<string, pair<double, int> > CloneAverageTimes();
34 static std::hash_map<string, double> CloneLastTimes();
35 static std::hash_map<string, double> CloneMaxTimes();
38 static std::hash_map<string, Stopwatch*> s_profilers;
39 static std::hash_map<string, pair<double, int> > s_averageTimes;
40 static std::hash_map<string, double> s_lastTimes;
41 static std::hash_map<string, double> s_maxTimes;
43 static Rhesus::Toolkit::Tasks::Mutex s_syncObj;