You can look at example in C++ code of how one of the statistics displayed in stats.txt is added and used. In your case you can simply define "Stats::Scalar Counter" member variable in corresponding class. Most of the classes that monitor some stat or other has regStats() function. Register this counter variable with name and description in this regStats() function. You can now see your counter variable something like simobject.classname.variablename along with description in your stats.txt.
Thanks & Regards, Vamsi Krishna On Sun, Mar 23, 2014 at 6:06 PM, tanmayGadre <[email protected]> wrote: > I want to add a simple statistic which i am using as a counter and and want > to display it in stats.txt file . > i am going to perform only addition operation on it . > what all changes do i have to make and in which files ? > i read the wiki page for it but couldn't understand much from it . > > > _______________________________________________ > gem5-users mailing list > [email protected] > http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users > -- Regards, Vamsi Krishna
_______________________________________________ gem5-users mailing list [email protected] http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users
