diff --git a/src/python/m5/stats/gem5stats.py b/src/python/m5/stats/gem5stats.py index 3e84ed0a6e..5b031d9a73 100644 --- a/src/python/m5/stats/gem5stats.py +++ b/src/python/m5/stats/gem5stats.py @@ -373,6 +373,10 @@ def get_simstat( :Returns: The SimStat Object of the current simulation. """ + + if prepare_stats: + _m5.stats.processDumpQueue() + stats_map = {} for r in root: creation_time = datetime.now() @@ -384,9 +388,6 @@ def get_simstat( simulated_begin_time = int(final_tick - sim_ticks) simulated_end_time = int(final_tick) - if prepare_stats: - _m5.stats.processDumpQueue() - if prepare_stats: if isinstance(r, list): for obj in r: