Korey, Use myStat[tid].value()
Lisa On Fri, Mar 5, 2010 at 9:07 AM, Korey Sewell <[email protected]> wrote: > Is there a way to get the run-time value of a stat? > > Particularly, I have a vector stats that I am incrementing: > myStat[tid]++. > > But, for debugging purposes, I would like to print out the stats value: > printf("Stat value is %i", myStat[tid]) > but that will cause compiler errors with the Stat type. > > I've seen in other places in M5 where there is one "counting" variable and > there is a separate "statistic" variable, but I'm just wondering if I can > get away with just using one stat variable and reading the value from that > directly. > > (This may be a old topic so excuse me for rehashing it again if it is.) > > -- > - Korey > > _______________________________________________ > m5-dev mailing list > [email protected] > http://m5sim.org/mailman/listinfo/m5-dev > >
_______________________________________________ m5-dev mailing list [email protected] http://m5sim.org/mailman/listinfo/m5-dev
