30 #ifdef XERUS_PERFORMANCE_ANALYSIS 34 #define XERUS_PA_START const size_t pa_startTime = misc::uTime() 35 #define XERUS_PA_END(group, name, parameter) { std::pair<size_t, size_t>& pa_call = xerus::misc::performanceAnalysis::calls[group][name][parameter]; pa_call.first++; pa_call.second += misc::uTime() - pa_startTime; } 37 #define XERUS_PA_START 38 #define XERUS_PA_END(group, name, parameter) 44 namespace performanceAnalysis {
45 #ifdef XERUS_PERFORMANCE_ANALYSIS 46 extern const size_t startupTime;
47 extern std::map<std::string, std::map<std::string, std::map<std::string, std::pair<size_t, size_t>>>> calls;
The main namespace of xerus.
Header file for basic time measurement functionality.
Header file for global shorthand notations of elementary integer types and attribute lists...