Skip to content

Commit

Permalink
Add function to deregister a profiler from profiler list
Browse files Browse the repository at this point in the history
  • Loading branch information
sapier authored and sapier committed Jan 6, 2014
1 parent d76957e commit 6833e04
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/profiler.h
Expand Up @@ -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;
Expand Down

0 comments on commit 6833e04

Please sign in to comment.