diff options
author | Mitchell Hayenga <Mitchell.Hayenga@ARM.com> | 2012-06-05 01:23:08 -0400 |
---|---|---|
committer | Mitchell Hayenga <Mitchell.Hayenga@ARM.com> | 2012-06-05 01:23:08 -0400 |
commit | 8294d49bb6f787bbe5b05a4a5c52d1d26a2289af (patch) | |
tree | c3bca35253d157c9187167ddbdeed93a8dad70f2 /src/base/statistics.hh | |
parent | 0b0c5621eea48a79d1d17e494fa99ea34ad8fad0 (diff) | |
download | gem5-8294d49bb6f787bbe5b05a4a5c52d1d26a2289af.tar.xz |
stats: Provide a mechanism to get a callback when stats are dumped.
This mechanism is useful for dumping output that is correlated with stats
dumping, but isn't tracked by the gem5 statistics.
Diffstat (limited to 'src/base/statistics.hh')
-rw-r--r-- | src/base/statistics.hh | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/base/statistics.hh b/src/base/statistics.hh index 67c09bb6a..c36f8f461 100644 --- a/src/base/statistics.hh +++ b/src/base/statistics.hh @@ -3135,6 +3135,12 @@ bool enabled(); */ void registerResetCallback(Callback *cb); +/** + * Register a callback that should be called whenever statistics are + * about to be dumped + */ +void registerDumpCallback(Callback *cb); + std::list<Info *> &statsList(); } // namespace Stats |