mirror of
https://github.com/minetest/minetest.git
synced 2024-11-27 01:53:45 +01:00
Add ScopeProfilerType SPT_GRAPH_ADD
This commit is contained in:
parent
194258b479
commit
da4f51332f
@ -175,7 +175,8 @@ private:
|
||||
|
||||
enum ScopeProfilerType{
|
||||
SPT_ADD,
|
||||
SPT_AVG
|
||||
SPT_AVG,
|
||||
SPT_GRAPH_ADD
|
||||
};
|
||||
|
||||
class ScopeProfiler
|
||||
@ -216,6 +217,9 @@ public:
|
||||
case SPT_AVG:
|
||||
m_profiler->avg(m_name, duration);
|
||||
break;
|
||||
case SPT_GRAPH_ADD:
|
||||
m_profiler->graphAdd(m_name, duration);
|
||||
break;
|
||||
}
|
||||
}
|
||||
delete m_timer;
|
||||
|
Loading…
Reference in New Issue
Block a user