hi vilas,

you could maybe make your hash_map a hash *of* stats types (like
hash_map<whatever, scalar stat>)...that way whenever you update the hash
map, you're updating the stat and thus will get printed at the end...would
that fit in with what youe' doing?

lisa

On 12/5/06, Vilas Sridharan <[EMAIL PROTECTED]> wrote:

Hello M5 developers --

I'm using M5 2.0b1.  I would like to track information about certain
instructions using a hash_map, and dump the information at the end of
simulation.  Is there a built-in Stats Hash class?  I didn't see one, but I
wanted to check.

Alternatively, I could simply call a function at the end of simulation and
copy each entry of the hash_map into a Stats::Vector.  Is there a way to
call a function called at the end of simulation *before* the statistics are
written to file?  My guess is yes, but I couldn't quite figure out how to do
it.

Thanks for any help you can provide,

   -Vilas

_______________________________________________
m5-users mailing list
[email protected]
http://m5sim.org/cgi-bin/mailman/listinfo/m5-users


_______________________________________________
m5-users mailing list
[email protected]
http://m5sim.org/cgi-bin/mailman/listinfo/m5-users

Reply via email to