stats: Optimise the text-based stats output to improve speed
Review Request #1643 - Created Jan. 15, 2013 and updated - Latest diff uploaded
| Information | |
|---|---|
| Andreas Hansson | |
| gem5 | |
| default | |
| Reviewers | |
| Default | |
Changeset 9714:68ea5c8f8d6c
---------------------------
stats: Optimise the text-based stats output to improve speed
The text-based stats output is slow than the original C++ output. This patch
addresses some of those issues by removing:
Asserts that are not required
stats.ValueProxy, as it is no longer required
Unnecessary calls to __getattr__ and __hasattr__
It also changes the formula calculation to only calculate the values and totals
of formulas if they have not been passed in from the C++. This allows other
formulas to be added, whilst ensuring that the stats output is sufficiently
fast.
Testing has shown a 6x - 8x increase in stats output speed.
Ensure that the output files are identical
