From 6833e04bc55156025267c39a58a29007318129fa Mon Sep 17 00:00:00 2001 From: sapier Date: Mon, 6 Jan 2014 15:21:22 +0100 Subject: [PATCH] Add function to deregister a profiler from profiler list --- src/profiler.h | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/profiler.h b/src/profiler.h index b703a2d5..e746c489 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; -- 2.30.2