From: Perttu Ahola Date: Wed, 21 Mar 2012 13:38:24 +0000 (+0200) Subject: Add ScopeProfilerType SPT_GRAPH_ADD X-Git-Url: http://81.2.79.47:8989/gitweb/?a=commitdiff_plain;h=da4f51332ffff502d7b7f6976287963959cdb11d;p=zefram%2Fminetest%2Fminetest_engine.git Add ScopeProfilerType SPT_GRAPH_ADD --- diff --git a/src/profiler.h b/src/profiler.h index 938742f2..f887584d 100644 --- a/src/profiler.h +++ b/src/profiler.h @@ -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;