1
0
mirror of https://github.com/minetest/minetest.git synced 2024-09-27 15:00:30 +02:00

Add function to deregister a profiler from profiler list

This commit is contained in:
sapier 2014-01-06 15:21:22 +01:00
parent d76957ee22
commit 6833e04bc5

View File

@ -164,6 +164,13 @@ public:
m_graphvalues.clear(); m_graphvalues.clear();
} }
void remove(const std::string& name)
{
JMutexAutoLock lock(m_mutex);
m_avgcounts.erase(name);
m_data.erase(name);
}
private: private:
JMutex m_mutex; JMutex m_mutex;
std::map<std::string, float> m_data; std::map<std::string, float> m_data;