cpu: Correctly call parent on switchOut() and takeOverFrom()
[gem5.git] / src / cpu / activity.cc
index 84f88d594721493d0b9533684006cba0d5def547..87875c683dfe7b29d833a9683eb9d53eeb9dbe63 100644 (file)
@@ -32,6 +32,7 @@
 
 #include "cpu/activity.hh"
 #include "cpu/timebuf.hh"
+#include "debug/Activity.hh"
 
 using namespace std;
 
@@ -45,6 +46,11 @@ ActivityRecorder::ActivityRecorder(const string &name, int num_stages,
     std::memset(stageActive, 0, numStages);
 }
 
+ActivityRecorder::~ActivityRecorder()
+{
+    delete[] stageActive;
+}
+
 void
 ActivityRecorder::activity()
 {