projects
/
oweals
/
minetest.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d76957e
)
Add function to deregister a profiler from profiler list
1068/head
author
sapier
<Sapier at GMX dot net>
Mon, 6 Jan 2014 14:21:22 +0000
(15:21 +0100)
committer
sapier
<Sapier at GMX dot net>
Mon, 6 Jan 2014 14:26:24 +0000
(15:26 +0100)
src/profiler.h
patch
|
blob
|
history
diff --git
a/src/profiler.h
b/src/profiler.h
index b703a2d5b03fe489776c3bae3bb03c3bc0b9e88c..e746c489c525355a92d188aeb864676fa505f468 100644
(file)
--- 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;