summaryrefslogtreecommitdiff
path: root/src/unittest/stattestmain.py
blob: 60b041cd3690b005018d595ab4e2d6b71c7c5757 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
def main():
    from _m5.stattest import stattest_init, stattest_run
    import m5.stats

    stattest_init()

    # Initialize the global statistics
    m5.stats.initSimStats()
    m5.stats.addStatVisitor("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()