1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-08-26 18:21:04 +00:00

Add MAX profiler option

This commit is contained in:
Lars 2023-04-09 07:44:43 -10:00 committed by rubenwardy
parent 9d1ae80e89
commit 3d232e2345
2 changed files with 30 additions and 2 deletions

View file

@ -44,6 +44,7 @@ public:
void add(const std::string &name, float value);
void avg(const std::string &name, float value);
void max(const std::string &name, float value);
void clear();
float getValue(const std::string &name) const;
@ -92,7 +93,8 @@ private:
enum ScopeProfilerType{
SPT_ADD,
SPT_AVG,
SPT_GRAPH_ADD
SPT_GRAPH_ADD,
SPT_MAX
};
class ScopeProfiler