]> git.lizzy.rs Git - minetest.git/blobdiff - src/profiler.h
Raise PROTOCOL_VERSION to 9, as this is not compatible with earlier versions
[minetest.git] / src / profiler.h
index 938742f225dcf460097667f6c3480da7ee9e97db..f887584d19f170b15c4c1bfc559e1ed737fd45e4 100644 (file)
@@ -175,7 +175,8 @@ class Profiler
 
 enum ScopeProfilerType{
        SPT_ADD,
-       SPT_AVG
+       SPT_AVG,
+       SPT_GRAPH_ADD
 };
 
 class ScopeProfiler
@@ -216,6 +217,9 @@ class ScopeProfiler
                                case SPT_AVG:
                                        m_profiler->avg(m_name, duration);
                                        break;
+                               case SPT_GRAPH_ADD:
+                                       m_profiler->graphAdd(m_name, duration);
+                                       break;
                                }
                        }
                        delete m_timer;