Skip to content

Commit

Permalink
Add ScopeProfilerType SPT_GRAPH_ADD
Browse files Browse the repository at this point in the history
  • Loading branch information
celeron55 committed Mar 21, 2012
1 parent 194258b commit da4f513
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/profiler.h
Expand Up @@ -175,7 +175,8 @@ class Profiler

enum ScopeProfilerType{
SPT_ADD,
SPT_AVG
SPT_AVG,
SPT_GRAPH_ADD
};

class ScopeProfiler
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit da4f513

Please sign in to comment.