Hi Shervin,
Try updating your gem5. The patch which enables this only recently got
committed to the repository (about 2 weeks ago).
The definition is in src/sim/stat_control.cc, and the swig interface is in
src/python/swig/stats.i.
Sascha
From: gem5-users-boun...@gem5.org [mailto:gem5-users-boun...@gem5.org] On
Behalf Of shervin hajiamini
Sent: 09 October 2012 16:28
To: gem5-users@gem5.org
Subject: Re: [gem5-users] dump stats for every N cycles
Hi Sascha,
I added "from m5.internal.stats import periodicStatDump as statDump" to fs.py,
however while building gem5, it gives me the following error:
can not import name periodicStatDump
I can not find the definition of "periodStatDump" function in any of the python
files. I would appreciate if you could help me with this.
Thanks,
Shervin
Message: 1
Date: Mon, 8 Oct 2012 12:03:35 +0100
From: Sascha Bischoff
<sascha.bisch...@arm.com</mc/compose?to=sascha.bisch...@arm.com>>
To: gem5-users@gem5.org</mc/compose?to=gem5-users@gem5.org>
Subject: Re: [gem5-users] dump stats for every N cycles
Message-ID: <5072b307.1060...@arm.com</mc/compose?to=5072b307.1060...@arm.com>>
Content-Type: text/plain; charset=WINDOWS-1252; format=flowed
Hi Shervin,
You want to add the following to one of your python files (fs.py, se.py
are good choices):
from m5.internal.stats import periodicStatDump as statDump
# Specify the period in Ticks
statDump(1000000000)
I hope that helps,
Sascha
*************************************
-- IMPORTANT NOTICE: The contents of this email and any attachments are
confidential and may also be privileged. If you are not the intended recipient,
please notify the sender immediately and do not disclose the contents to any
other person, use it for any purpose, or store or copy the information in any
medium. Thank you.
_______________________________________________
gem5-users mailing list
gem5-users@gem5.org
http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users