mirror of
https://github.com/luanti-org/luanti.git
synced 2025-09-15 18:57:08 +00:00
Add function to deregister a profiler from profiler list
This commit is contained in:
parent
d76957ee22
commit
6833e04bc5
1 changed files with 7 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue