cpu: Correctly call parent on switchOut() and takeOverFrom()
[gem5.git] / src / cpu / activity.cc
index a2a34edf9bad09f5c1946a02c7a98cf57ea4ac75..87875c683dfe7b29d833a9683eb9d53eeb9dbe63 100644 (file)
@@ -30,8 +30,9 @@
 
 #include <string>
 
-#include "base/timebuf.hh"
 #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()
 {