From 8294d49bb6f787bbe5b05a4a5c52d1d26a2289af Mon Sep 17 00:00:00 2001 From: Mitchell Hayenga Date: Tue, 5 Jun 2012 01:23:08 -0400 Subject: 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. --- src/python/swig/stats.i | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/python/swig') diff --git a/src/python/swig/stats.i b/src/python/swig/stats.i index 14a6966b1..5a6910fa6 100644 --- a/src/python/swig/stats.i +++ b/src/python/swig/stats.i @@ -71,6 +71,13 @@ processResetQueue() resetQueue.process(); } +inline void +processDumpQueue() +{ + extern CallbackQueue dumpQueue; + dumpQueue.process(); +} + inline char * PCC(const char *string) { @@ -146,6 +153,7 @@ void schedStatEvent(bool dump, bool reset, Tick when = curTick(), Tick repeat = 0); void processResetQueue(); +void processDumpQueue(); void enable(); bool enabled(); -- cgit v1.2.3