ruby: fixed clearStats
This commit is contained in:
parent
469256d823
commit
d9ff3021ba
2 changed files with 14 additions and 7 deletions
|
@ -127,6 +127,7 @@ public:
|
|||
void print(ostream& out) const;
|
||||
void printData(ostream& out) const;
|
||||
|
||||
void clearStats() const;
|
||||
void printStats(ostream& out) const;
|
||||
|
||||
private:
|
||||
|
@ -561,6 +562,11 @@ void CacheMemory::printData(ostream& out) const
|
|||
out << "printData() not supported" << endl;
|
||||
}
|
||||
|
||||
inline void CacheMemory::clearStats() const
|
||||
{
|
||||
m_profiler_ptr->clearStats();
|
||||
}
|
||||
|
||||
inline
|
||||
void CacheMemory::printStats(ostream& out) const
|
||||
{
|
||||
|
|
|
@ -347,15 +347,16 @@ void RubySystem::printStats(ostream& out)
|
|||
|
||||
void RubySystem::clearStats() const
|
||||
{
|
||||
/*
|
||||
m_profiler_ptr->clearStats();
|
||||
for (int i=0; i<m_rubyRequestQueues.size(); i++)
|
||||
for (int j=0;j<m_rubyRequestQueues[i].size(); j++)
|
||||
m_rubyRequestQueues[i][j]->clearStats();
|
||||
m_network_ptr->clearStats();
|
||||
for (int i=0; i < MachineType_base_level(MachineType_NUM); i++)
|
||||
m_controllers[i][0]->clearStats();
|
||||
*/
|
||||
for (map<string, CacheMemory*>::const_iterator it = m_caches.begin();
|
||||
it != m_caches.end(); it++) {
|
||||
(*it).second->clearStats();
|
||||
}
|
||||
for (map<string, AbstractController*>::const_iterator it = m_controllers.begin();
|
||||
it != m_controllers.end(); it++) {
|
||||
(*it).second->clearStats();
|
||||
}
|
||||
}
|
||||
|
||||
void RubySystem::recordCacheContents(CacheRecorder& tr) const
|
||||
|
|
Loading…
Reference in a new issue