Skip to content
Snippets Groups Projects
Commit 6833e04b authored by sapier's avatar sapier
Browse files

Add function to deregister a profiler from profiler list

parent d76957ee
No related branches found
No related tags found
No related merge requests found
......@@ -164,6 +164,13 @@ class Profiler
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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment