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

On Mon, Aug 13, 2018 at 8:31 AM Jimmy Situ <[email protected]> wrote:

> 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
>
> _______________________________________________
> gem5-users mailing list
> [email protected]
> http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users
_______________________________________________
gem5-users mailing list
[email protected]
http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users

Reply via email to