mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-15 09:25:37 +02:00
Add ScopeProfilerType SPT_GRAPH_ADD
This commit is contained in:
@@ -175,7 +175,8 @@ private:
|
|||||||
|
|
||||||
enum ScopeProfilerType{
|
enum ScopeProfilerType{
|
||||||
SPT_ADD,
|
SPT_ADD,
|
||||||
SPT_AVG
|
SPT_AVG,
|
||||||
|
SPT_GRAPH_ADD
|
||||||
};
|
};
|
||||||
|
|
||||||
class ScopeProfiler
|
class ScopeProfiler
|
||||||
@@ -216,6 +217,9 @@ public:
|
|||||||
case SPT_AVG:
|
case SPT_AVG:
|
||||||
m_profiler->avg(m_name, duration);
|
m_profiler->avg(m_name, duration);
|
||||||
break;
|
break;
|
||||||
|
case SPT_GRAPH_ADD:
|
||||||
|
m_profiler->graphAdd(m_name, duration);
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
delete m_timer;
|
delete m_timer;
|
||||||
|
Reference in New Issue
Block a user