From 59a7abff29aa5a687e1693f003c20d7e2000c40a Mon Sep 17 00:00:00 2001 From: "Nilay Vaish ext:(%2C%20Malek%20Musleh%20%3Cmalek.musleh%40gmail.com%3E)" Date: Tue, 21 May 2013 11:31:31 -0500 Subject: ruby: add stats to .sm files, remove cache profiler This patch changes the way cache statistics are collected in ruby. As of now, there is separate entity called CacheProfiler which holds statistical variables for caches. The CacheMemory class defines different functions for accessing the CacheProfiler. These functions are then invoked in the .sm files. I find this approach opaque and prone to error. Secondly, we probably should not be paying the cost of a function call for recording statistics. Instead, this patch allows for accessing statistical variables in the .sm files. The collection would become transparent. Secondly, it would happen in place, so no function calls. The patch also removes the CacheProfiler class. --HG-- rename : src/mem/slicc/ast/InfixOperatorExprAST.py => src/mem/slicc/ast/OperatorExprAST.py --- src/mem/ruby/profiler/SConscript | 1 - 1 file changed, 1 deletion(-) (limited to 'src/mem/ruby/profiler/SConscript') diff --git a/src/mem/ruby/profiler/SConscript b/src/mem/ruby/profiler/SConscript index 70082ad03..613c70aa0 100644 --- a/src/mem/ruby/profiler/SConscript +++ b/src/mem/ruby/profiler/SConscript @@ -37,7 +37,6 @@ SimObject('Profiler.py') Source('AccessTraceForAddress.cc') Source('AddressProfiler.cc') -Source('CacheProfiler.cc') Source('MemCntrlProfiler.cc') Source('Profiler.cc') Source('StoreTrace.cc') -- cgit v1.2.3