This SimObject can be used to quickly test the statistics are functioning correctly. The SimObject schedules a single event which sets the statistics to values dependent on the SimObject params. With this commit the "Scalar" stats have a StatTester subclass that can be used for testing. More can be added as required. Tests are included to check our Scalar SimStat functionality. Change-Id: I78fa5d9a0c3fc7115bd6c6d3410a5436aaa47f55
Stats
These test ensure the stats are output correctly.
- "test_hdf5" - Test hdf5 output. Runs a simulation and ensures the hdf5 output exists.
- "test_simstats_output" - Tests the SimStat python module is parsing and outputting the stats correctly.
./main.py run gem5/stats --length=[length]