diff options
author | Andreas Sandberg <andreas.sandberg@arm.com> | 2016-12-19 16:25:39 +0000 |
---|---|---|
committer | Andreas Sandberg <andreas.sandberg@arm.com> | 2016-12-19 16:25:39 +0000 |
commit | 8702208f3f0309cd1f88aa12b85b4ea31e6ee85c (patch) | |
tree | b6bafc71b731c861047c0d1dec18e1b732f8e6b6 /src/python/m5 | |
parent | 73627fa007f130c4dad34aadf1afa1d614de4669 (diff) | |
download | gem5-8702208f3f0309cd1f88aa12b85b4ea31e6ee85c.tar.xz |
python: Export periodicStatDump
Some configuration scripts need periodic stat dumps. One of the ways
this can be achieved is by using the pariodicStatDump helper
function. This function was previously only exported in the internal
name space. Export it as a normal function in m5.stat instead.
Change-Id: Ic88bf1fd33042a62ab436d5944d8ed778264ac98
Signed-off-by: Andreas Sandberg <andreas.sandberg@arm.com>
Reviewed-by: Sascha Bischoff <sascha.bischoff@arm.com>
Diffstat (limited to 'src/python/m5')
-rw-r--r-- | src/python/m5/stats/__init__.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/python/m5/stats/__init__.py b/src/python/m5/stats/__init__.py index 763d9b9e3..4defaf5c1 100644 --- a/src/python/m5/stats/__init__.py +++ b/src/python/m5/stats/__init__.py @@ -30,10 +30,13 @@ import m5 from m5 import internal -from m5.internal.stats import schedStatEvent as schedEvent from m5.objects import Root from m5.util import attrdict, fatal +# Stat exports +from m5.internal.stats import schedStatEvent as schedEvent +from m5.internal.stats import periodicStatDump + outputList = [] def initText(filename, desc=True): output = internal.stats.initText(filename, desc) |