summaryrefslogtreecommitdiff
path: root/cpu/profile.hh
diff options
context:
space:
mode:
authorNathan Binkert <binkertn@umich.edu>2005-11-20 18:33:17 -0500
committerNathan Binkert <binkertn@umich.edu>2005-11-20 18:33:17 -0500
commitb62e7d24ec82fd3f27783bc13fb223f64ed0c1c9 (patch)
treed37d75ce6225419d78849c5c0881612278dace5f /cpu/profile.hh
parent9e8151f39220957b2be0b546544b6e74831071a9 (diff)
downloadgem5-b62e7d24ec82fd3f27783bc13fb223f64ed0c1c9.tar.xz
clear the function profile on a stats reset
cpu/profile.hh: Add a placeholder for a reset callback --HG-- extra : convert_revision : 7fa13e5d04daf1cf93eb35c8fdaf67a40ce3ef73
Diffstat (limited to 'cpu/profile.hh')
-rw-r--r--cpu/profile.hh2
1 files changed, 2 insertions, 0 deletions
diff --git a/cpu/profile.hh b/cpu/profile.hh
index b7526ab6a..58cd7e79f 100644
--- a/cpu/profile.hh
+++ b/cpu/profile.hh
@@ -54,9 +54,11 @@ class ProfileNode
void clear();
};
+class Callback;
class FunctionProfile
{
private:
+ Callback *reset;
const SymbolTable *symtab;
ProfileNode top;
std::map<Addr, Counter> pc_count;