X-Git-Url: https://git.ucc.asn.au/?p=ipdf%2Fcode.git;a=blobdiff_plain;f=src%2Fprofiler.h;h=ffffae915b5d79af7dddc41cce822a39f48ff11c;hp=f69f06adb4d5929434f5f1816591032fb34fefb5;hb=b716ae547424e4e4bbda86781a151c31e3a64e67;hpb=77e5193080bdeb052803683b77bc6dd16f427b57 diff --git a/src/profiler.h b/src/profiler.h index f69f06a..ffffae9 100644 --- a/src/profiler.h +++ b/src/profiler.h @@ -1,6 +1,7 @@ #ifndef _PROFILER_H #define _PROFILER_H +#include #include #include #include @@ -20,6 +21,8 @@ namespace IPDF void EndFrame(); void Enable(bool enabled) { m_enabled = enabled; } + + void AddCounter(std::string name, uint64_t amt); private: struct ProfileZone { @@ -32,6 +35,7 @@ namespace IPDF }; std::map m_zones; + std::map m_counters; std::stack m_zone_stack; bool m_enabled; };