diff --git a/src/profiler.h b/src/profiler.h index b703a2d5b..e746c489c 100644 --- a/src/profiler.h +++ b/src/profiler.h @@ -164,6 +164,13 @@ public: m_graphvalues.clear(); } + void remove(const std::string& name) + { + JMutexAutoLock lock(m_mutex); + m_avgcounts.erase(name); + m_data.erase(name); + } + private: JMutex m_mutex; std::map m_data;