Thank you for the suggestions. Regards, Arun
On Thu, Nov 6, 2014 at 3:18 AM, Patrick <[email protected]> wrote: > Arun, > > I haven't working directly with the Formula class, but I looked over the > files in which it is defined (src/base/statistics.hh and > src/base/statistics.cc). Note that the class is defined in the header file > as: "A formula for statistics that is calculated when printed. A formula > is stored as a tree of Nodes that represent the equation to calculate." So > this is a non-trivial object. Glancing at it, it does have a member > function named "str" that appears that it will print out the tree, which me > be helpful for you. There is also a function called "result" that returns > the "result of the formula" in a VResult type. > > I hope this will help you at least to get started on the right path. > > -Patrick La Fratta > > On Tue, Nov 4, 2014 at 7:50 AM, Arun Subramaniyan via gem5-users < > [email protected]> wrote: > >> Hello everyone >> >> I am trying to monitor how a particular Stats::Formula type variable >> (like cache miss rate) evolves at runtime. I have tried to display its >> value using DPRINTF but to no avail. Can someone guide me on how to >> accomplish this? >> >> Thank you. >> >> Regards, >> Arun >> >> _______________________________________________ >> gem5-users mailing list >> [email protected] >> http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users >> > > -- Arun S
_______________________________________________ gem5-users mailing list [email protected] http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users
