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:
parent
9d1ae80e89
commit
3d232e2345
2 changed files with 30 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue