2011-04-15 19:45:11 +02:00
|
|
|
def main():
|
2017-01-27 13:40:01 +01:00
|
|
|
from _m5.stattest import stattest_init, stattest_run
|
2011-04-15 19:45:11 +02:00
|
|
|
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()
|