stats: Optimise SQL stats output to improve speed and file size
Review Request #1644 - Created Jan. 15, 2013 and updated - Latest diff uploaded
| Information | |
|---|---|
| Andreas Hansson | |
| gem5 | |
| default | |
| Reviewers | |
| Default | |
Changeset 9497:9835f2157f30 --------------------------- stats: Optimise SQL stats output to improve speed and file size This patch optimises the SQL stats. It does this by only writing to the stats database if and when the stat is non-zero and non-NaN and the corresponding flag is set. It also removes unnecessary calls to getattr and hasattr by accessing the values directly. Finally, it only calculates the total for a formula if necessary
