2974dc7a37
Swig wrappers for native objects currently share the _m5.internal name space with Python code. This is undesirable if we ever want to switch from Swig to some other framework for native binding (e.g., PyBind11 or Boost::Python). This changeset moves all of such wrappers to the _m5 namespace, which is now reserved for native code. Change-Id: I2d2bc12dbc05b57b7c5a75f072e08124413d77f3 Signed-off-by: Andreas Sandberg <andreas.sandberg@arm.com> Reviewed-by: Curtis Dunham <curtis.dunham@arm.com> Reviewed-by: Jason Lowe-Power <jason@lowepower.com>
20 lines
418 B
Python
20 lines
418 B
Python
def main():
|
|
from _m5.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()
|