aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPerttu Ahola <celeron55@gmail.com>2012-03-21 15:38:24 +0200
committerPerttu Ahola <celeron55@gmail.com>2012-03-21 15:38:24 +0200
commitda4f51332ffff502d7b7f6976287963959cdb11d (patch)
tree46efb008608903f8a7e5b38c8819bda913416c16 /src
parent194258b4794ec13b9ffa7b5f37a3060ecc0e59b3 (diff)
downloadminetest-da4f51332ffff502d7b7f6976287963959cdb11d.tar.gz
minetest-da4f51332ffff502d7b7f6976287963959cdb11d.tar.bz2
minetest-da4f51332ffff502d7b7f6976287963959cdb11d.zip
Add ScopeProfilerType SPT_GRAPH_ADD
Diffstat (limited to 'src')
-rw-r--r--src/profiler.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/profiler.h b/src/profiler.h
index 938742f22..f887584d1 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;