"I would suggest computing any and all formulas after running the simulation, not during the simulation loop."
I'd be ok with that since I have the variable values that I need. Is that, however, achievable only through Python or can I do this computation through C++ at the end of the simulation? Thanks On Fri, 22 Oct 2021 at 12:59, Jason Lowe-Power <[email protected]> wrote: > Hi Victor, > > It's not super easy to access stats between SimObjects. I would suggest > computing any and all formulas after running the simulation, not during the > simulation loop. > > You can either parse the stats.txt or use the new python stats interface ( > https://gem5.googlesource.com/public/gem5/+/refs/heads/stable/src/python/m5/stats/gem5stats.py#237) > to access stats from your python run script. > > Cheers, > Jason > > On Thu, Oct 21, 2021 at 4:12 PM Victor Kariofillis via gem5-users < > [email protected]> wrote: > >> Hi, >> >> I have created a new stat of type Formula in the xbar.cc/hh files. There >> I aggregate all the different transDist types. I'd like to use this newly >> created stat to compute another stat in the BaseCPU object. What is the >> best way to have access to it (i.e., allTransactions stat) from BaseCPU? Is >> there any way to make it globally accessible? >> >> Thanks >> _______________________________________________ >> gem5-users mailing list -- [email protected] >> To unsubscribe send an email to [email protected] >> %(web_page_url)slistinfo%(cgiext)s/%(_internal_name)s > >
_______________________________________________ gem5-users mailing list -- [email protected] To unsubscribe send an email to [email protected] %(web_page_url)slistinfo%(cgiext)s/%(_internal_name)s
