diff options
author | Nathan Binkert <nate@binkert.org> | 2011-04-15 10:45:11 -0700 |
---|---|---|
committer | Nathan Binkert <nate@binkert.org> | 2011-04-15 10:45:11 -0700 |
commit | 915f49ae9255372267aabe06e8c28c1fab8e43a5 (patch) | |
tree | c705ede98e96b8119c49a62d7ebec677a7de435d /src/unittest/stattestmain.py | |
parent | 8c97726266a83fda31f8a68860157f195d7466ea (diff) | |
download | gem5-915f49ae9255372267aabe06e8c28c1fab8e43a5.tar.xz |
unittest: Make unit tests capable of using swig and python, convert stattest
Diffstat (limited to 'src/unittest/stattestmain.py')
-rw-r--r-- | src/unittest/stattestmain.py | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/src/unittest/stattestmain.py b/src/unittest/stattestmain.py new file mode 100644 index 000000000..2c0a4a9aa --- /dev/null +++ b/src/unittest/stattestmain.py @@ -0,0 +1,19 @@ +def main(): + from m5.internal.stattest import stattest_init, stattest_run + import m5.stats + + stattest_init() + + # Initialize the global statistics + m5.stats.initSimStats() + m5.stats.initText("cout") + + # We're done registering statistics. Enable the stats package now. + m5.stats.enable() + + # Reset to put the stats in a consistent state. + m5.stats.reset() + + stattest_run() + + m5.stats.dump() |