Add ScopeProfilerType SPT_GRAPH_ADD
authorPerttu Ahola <celeron55@gmail.com>
Wed, 21 Mar 2012 13:38:24 +0000 (15:38 +0200)
committerPerttu Ahola <celeron55@gmail.com>
Wed, 21 Mar 2012 13:38:24 +0000 (15:38 +0200)
src/profiler.h

index 938742f225dcf460097667f6c3480da7ee9e97db..f887584d19f170b15c4c1bfc559e1ed737fd45e4 100644 (file)
@@ -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;