From e59d0e3e89f46f35065ab318c8578941203cc657 Mon Sep 17 00:00:00 2001 From: Derek Hower Date: Mon, 20 Jul 2009 09:40:43 -0500 Subject: 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. --- src/mem/ruby/system/System.cc | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/mem/ruby/system/System.cc') 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::const_iterator it = m_caches.begin(); + it != m_caches.end(); it++) { + (*it).second->printStats(out); + } for (map::const_iterator it = m_controllers.begin(); it != m_controllers.end(); it++) { (*it).second->printStats(out); -- cgit v1.2.3