diff options
author | Derek Hower <drh5@cs.wisc.edu> | 2009-07-27 21:43:43 -0500 |
---|---|---|
committer | Derek Hower <drh5@cs.wisc.edu> | 2009-07-27 21:43:43 -0500 |
commit | 469256d8239e453cdaa2431a2f879f5187809ef1 (patch) | |
tree | d969166dc5d63fdda828311629de144b863c2cf3 /src/mem/ruby/profiler/AddressProfiler.cc | |
parent | c635d04642723f7dea68ee6c6c882c7751d8484b (diff) | |
download | gem5-469256d8239e453cdaa2431a2f879f5187809ef1.tar.xz |
ruby: removed unused/incorrect profiler state
Diffstat (limited to 'src/mem/ruby/profiler/AddressProfiler.cc')
-rw-r--r-- | src/mem/ruby/profiler/AddressProfiler.cc | 29 |
1 files changed, 0 insertions, 29 deletions
diff --git a/src/mem/ruby/profiler/AddressProfiler.cc b/src/mem/ruby/profiler/AddressProfiler.cc index 9ff10dc90..9c9445de3 100644 --- a/src/mem/ruby/profiler/AddressProfiler.cc +++ b/src/mem/ruby/profiler/AddressProfiler.cc @@ -54,7 +54,6 @@ AddressProfiler::AddressProfiler() m_macroBlockAccessTrace = new Map<Address, AccessTraceForAddress>; m_programCounterAccessTrace = new Map<Address, AccessTraceForAddress>; m_retryProfileMap = new Map<Address, AccessTraceForAddress>; - m_persistentPredictionProfileMap = new Map<Address, AccessTraceForAddress>; clearStats(); } @@ -64,7 +63,6 @@ AddressProfiler::~AddressProfiler() delete m_macroBlockAccessTrace; delete m_programCounterAccessTrace; delete m_retryProfileMap; - delete m_persistentPredictionProfileMap; } void AddressProfiler::setHotLines(bool hot_lines){ @@ -125,31 +123,10 @@ void AddressProfiler::printStats(ostream& out) const m_retryProfileHisto.printPercent(out); out << endl; - out << "retry_histogram_per_instruction: "; - m_retryProfileHisto.printWithMultiplier(out, 1.0 / double(g_system_ptr->getProfiler()->getTotalInstructionsExecuted())); - out << endl; - printSorted(out, m_retryProfileMap, "block_address"); out << endl; } - if (m_persistentPredictionProfileHisto.size() > 0) { - out << "Persistent Prediction Profile" << endl; - out << "-------------" << endl; - out << endl; - out << "persistent prediction_histogram: " << m_persistentPredictionProfileHisto << endl; - - out << "persistent prediction_histogram_percent: "; - m_persistentPredictionProfileHisto.printPercent(out); - out << endl; - - out << "persistentPrediction_histogram_per_instruction: "; - m_persistentPredictionProfileHisto.printWithMultiplier(out, 1.0 / double(g_system_ptr->getProfiler()->getTotalInstructionsExecuted())); - out << endl; - - printSorted(out, m_persistentPredictionProfileMap, "block_address"); - out << endl; - } } void AddressProfiler::clearStats() @@ -233,12 +210,6 @@ void AddressProfiler::profileRetry(const Address& data_addr, AccessType type, in } } -void AddressProfiler::profilePersistentPrediction(const Address& data_addr, AccessType type) -{ - m_persistentPredictionProfileHisto.add(1); - lookupTraceForAddress(data_addr, m_persistentPredictionProfileMap).addSample(1); -} - // ***** Normal Functions ****** static void printSorted(ostream& out, const Map<Address, AccessTraceForAddress>* record_map, string description) |