X-Git-Url: https://git.ucc.asn.au/?p=ipdf%2Fcode.git;a=blobdiff_plain;f=src%2Fprofiler.h;fp=src%2Fprofiler.h;h=ffffae915b5d79af7dddc41cce822a39f48ff11c;hp=e406536ecc74b49876066a5f9eaca7c497b5f1b0;hb=b716ae547424e4e4bbda86781a151c31e3a64e67;hpb=f0b6c9b6b95fde134927c395afbfbbbc057868e6 diff --git a/src/profiler.h b/src/profiler.h index e406536..ffffae9 100644 --- a/src/profiler.h +++ b/src/profiler.h @@ -21,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 { @@ -33,6 +35,7 @@ namespace IPDF }; std::map m_zones; + std::map m_counters; std::stack m_zone_stack; bool m_enabled; };