diff options
author | Derek Hower <drh5@cs.wisc.edu> | 2009-07-20 09:40:43 -0500 |
---|---|---|
committer | Derek Hower <drh5@cs.wisc.edu> | 2009-07-20 09:40:43 -0500 |
commit | e59d0e3e89f46f35065ab318c8578941203cc657 (patch) | |
tree | 73dc7c9e8bd34c71712628326b4c9de69d4658c1 /src/mem/ruby/system/System.cc | |
parent | 308419b947b46f065b7e539040a1a2ef89be6480 (diff) | |
download | gem5-e59d0e3e89f46f35065ab318c8578941203cc657.tar.xz |
ruby: moved cache stats from Profiler to CacheMemory
Caches are now responsible for their own statistic gathering. This
requires a direct callback from the protocol on misses, and so all
future protocols need to take this into account.
Diffstat (limited to 'src/mem/ruby/system/System.cc')
-rw-r--r-- | src/mem/ruby/system/System.cc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/mem/ruby/system/System.cc b/src/mem/ruby/system/System.cc index fce456607..2c24c9ade 100644 --- a/src/mem/ruby/system/System.cc +++ b/src/mem/ruby/system/System.cc @@ -335,6 +335,10 @@ void RubySystem::printStats(ostream& out) m_profiler_ptr->printStats(out); m_network_ptr->printStats(out); + for (map<string, CacheMemory*>::const_iterator it = m_caches.begin(); + it != m_caches.end(); it++) { + (*it).second->printStats(out); + } for (map<string, AbstractController*>::const_iterator it = m_controllers.begin(); it != m_controllers.end(); it++) { (*it).second->printStats(out); |