ruby: reset and dump stats along with reset of the system
authorHamid Reza Khaleghzadeh ext:(%2C%20Lluc%20Alvarez%20%3Clluc.alvarez%40bsc.es%3E%2C%20Nilay%20Vaish%20%3Cnilay%40cs.wisc.edu%3E) <khaleghzadeh@gmail.com>
Fri, 2 Nov 2012 17:18:25 +0000 (12:18 -0500)
committerHamid Reza Khaleghzadeh ext:(%2C%20Lluc%20Alvarez%20%3Clluc.alvarez%40bsc.es%3E%2C%20Nilay%20Vaish%20%3Cnilay%40cs.wisc.edu%3E) <khaleghzadeh@gmail.com>
Fri, 2 Nov 2012 17:18:25 +0000 (12:18 -0500)
commit8cd475d58ebc144fdbdc34e710302eb3290bdd9b
treea34de336ea9a92c1899c11adc7fb57115e88dd73
parentce5766c409ca3e27e62a300b89511b9d0fcd6c18
ruby: reset and dump stats along with reset of the system
This patch adds support to ruby so that the statistics maintained by ruby
are reset/dumped when the statistics for the rest of the system are
reset/dumped. For resetting the statistics, ruby now provides the
resetStats() function that a sim object can provide. As a consequence, the
clearStats() function has been removed from RubySystem. For dumping stats,
Ruby now adds a callback event to the dumpStatsQueue. The exit callback that
ruby used to add earlier is being removed.

Created by: Hamid Reza Khaleghzadeh.
Improved by: Lluc Alvarez, Nilay Vaish
Committed by: Nilay Vaish
src/mem/ruby/profiler/Profiler.cc
src/mem/ruby/system/System.cc
src/mem/ruby/system/System.hh