stats: Output new-world stats before legacy stats

Now that global stats have been converted to new-style stats, it's
desirable to output them before legacy stats. This ensures that global
statistics (e.g., host_seconds) show up first in the stat file.

Change-Id: Ib099d0152a6612ebbadd234c27f2f3448aef1260
Signed-off-by: Andreas Sandberg <andreas.sandberg@arm.com>
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/35617
Reviewed-by: Jason Lowe-Power <power.jg@gmail.com>
Maintainer: Jason Lowe-Power <power.jg@gmail.com>
Tested-by: kokoro <noreply+kokoro@google.com>
This commit is contained in:
Andreas Sandberg
2020-10-05 15:27:55 +01:00
parent b9c7dae41f
commit 85a3feb3cd

View File

@@ -345,13 +345,13 @@ def _dump_to_visitor(visitor, roots=None):
for p in reversed(root.path_list()):
visitor.endGroup()
else:
# New stats starting from root.
dump_group(Root.getInstance())
# Legacy stats
for stat in stats_list:
stat.visit(visitor)
# New stats starting from root.
dump_group(Root.getInstance())
lastDump = 0
# List[SimObject].
global_dump_roots = []