projects
/
oweals
/
minetest.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
194258b
)
Add ScopeProfilerType SPT_GRAPH_ADD
author
Perttu Ahola
<celeron55@gmail.com>
Wed, 21 Mar 2012 13:38:24 +0000
(15:38 +0200)
committer
Perttu Ahola
<celeron55@gmail.com>
Wed, 21 Mar 2012 13:38:24 +0000
(15:38 +0200)
src/profiler.h
patch
|
blob
|
history
diff --git
a/src/profiler.h
b/src/profiler.h
index 938742f225dcf460097667f6c3480da7ee9e97db..f887584d19f170b15c4c1bfc559e1ed737fd45e4 100644
(file)
--- 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;