stattestmain.py revision 11802
18235Snate@binkert.orgdef main(): 211802Sandreas.sandberg@arm.com from _m5.stattest import stattest_init, stattest_run 38235Snate@binkert.org import m5.stats 48235Snate@binkert.org 58235Snate@binkert.org stattest_init() 68235Snate@binkert.org 78235Snate@binkert.org # Initialize the global statistics 88235Snate@binkert.org m5.stats.initSimStats() 98235Snate@binkert.org m5.stats.initText("cout") 108235Snate@binkert.org 118235Snate@binkert.org # We're done registering statistics. Enable the stats package now. 128235Snate@binkert.org m5.stats.enable() 138235Snate@binkert.org 148235Snate@binkert.org # Reset to put the stats in a consistent state. 158235Snate@binkert.org m5.stats.reset() 168235Snate@binkert.org 178235Snate@binkert.org stattest_run() 188235Snate@binkert.org 198235Snate@binkert.org m5.stats.dump() 20