Discussion:
[gem5-users] dumpresetstats in python file?
Jimmy Situ
2018-08-13 15:30:50 UTC
Permalink
Hi, All


I want to dump gem5 status every 10K clock in fs mode. I notice this can be done by using /sbin/m5
suppose I am running in 1GHz, and
/sbin/m5 dumpresetstats 0 100000


I wonder if there is a way to do it in the python script
something like
while 1:
m5.simulate(10000)
# dump and reset status here




Thanks.









------------------
Jimmy Situ
Jason Lowe-Power
2018-08-13 16:24:31 UTC
Permalink
Hi Jimmy,

Yes. The python code is almost exactly what you have. You can use
`m5.stats.reset()` and `m5.stats.dump()` from python. See
https://gem5.googlesource.com/public/gem5/+/master/src/python/m5/stats/__init__.py#192
.

Cheers,
Jason
Post by Jimmy Situ
Hi, All
I want to dump gem5 status every 10K clock in fs mode. I notice this can
be done by using /sbin/m5
suppose I am running in 1GHz, and
/sbin/m5 dumpresetstats 0 100000
I wonder if there is a way to do it in the python script
something like
m5.simulate(10000)
# dump and reset status here
Thanks.
------------------
Jimmy Situ
_______________________________________________
gem5-users mailing list
http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users
Loading...