aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/profiler.h7
1 files changed, 7 insertions, 0 deletions
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<std::string, float> m_data;