stats: Provide a mechanism to get a callback when stats are dumped.
Review Request #1043 - Created Feb. 13, 2012 and submitted
| Information | |
|---|---|
| Ali Saidi | |
| gem5 | |
| default | |
| Reviewers | |
| Default | |
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.
Posted (Feb. 14, 2012, 2:30 a.m.)
I'm OK with this diff, but I feel like you're going to probably need a prepare callback as well. If that's the case, I wonder if we should just have a single object that looks like this:
class StatsCallback {
virtual void reset() {}
virtual void prepare() {}
virtual void dump() {}
};
then register just one callback and override whatever you need for a particular case.
