diff options
author | Steve Reinhardt <steve.reinhardt@amd.com> | 2011-01-07 21:50:29 -0800 |
---|---|---|
committer | Steve Reinhardt <steve.reinhardt@amd.com> | 2011-01-07 21:50:29 -0800 |
commit | c22be9f2f016872b05d65c82055ddc936b4aa075 (patch) | |
tree | a261c6044632eab6cd472869932a9ddfb4e425c1 /src/sim/stat_control.cc | |
parent | 94807214c417f3124e2824597c2867f91c1017b3 (diff) | |
download | gem5-c22be9f2f016872b05d65c82055ddc936b4aa075.tar.xz |
stats: rename StatEvent() function to schedStatEvent().
This follows the style rules and is more descriptive.
Diffstat (limited to 'src/sim/stat_control.cc')
-rw-r--r-- | src/sim/stat_control.cc | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/sim/stat_control.cc b/src/sim/stat_control.cc index 83861c185..5985eb0a4 100644 --- a/src/sim/stat_control.cc +++ b/src/sim/stat_control.cc @@ -48,6 +48,7 @@ #endif #include "sim/eventq.hh" +#include "sim/stat_control.hh" using namespace std; @@ -164,7 +165,7 @@ initSimStats() static Global global; } -class _StatEvent : public Event +class StatEvent : public Event { private: bool dump; @@ -172,7 +173,7 @@ class _StatEvent : public Event Tick repeat; public: - _StatEvent(bool _dump, bool _reset, Tick _repeat) + StatEvent(bool _dump, bool _reset, Tick _repeat) : Event(Stat_Event_Pri), dump(_dump), reset(_reset), repeat(_repeat) { setFlags(AutoDelete); @@ -188,16 +189,15 @@ class _StatEvent : public Event Stats::reset(); if (repeat) { - Event *event = new _StatEvent(dump, reset, repeat); - mainEventQueue.schedule(event, curTick + repeat); + Stats::schedStatEvent(dump, reset, curTick + repeat, repeat); } } }; void -StatEvent(bool dump, bool reset, Tick when, Tick repeat) +schedStatEvent(bool dump, bool reset, Tick when, Tick repeat) { - Event *event = new _StatEvent(dump, reset, repeat); + Event *event = new StatEvent(dump, reset, repeat); mainEventQueue.schedule(event, when); } |