diff options
author | Nilay Vaish <nilay@cs.wisc.edu> | 2013-09-06 16:21:32 -0500 |
---|---|---|
committer | Nilay Vaish <nilay@cs.wisc.edu> | 2013-09-06 16:21:32 -0500 |
commit | 24dc914d8758464ed6d757cf2830456562686be0 (patch) | |
tree | 97a13a07c33bb3ed44bf80780ea188689786ca9d | |
parent | 79b5ea9d1934db5c53e2c87070424e43064c74c3 (diff) | |
download | gem5-24dc914d8758464ed6d757cf2830456562686be0.tar.xz |
ruby: profiler: removes function resourceUsage()
-rw-r--r-- | src/mem/ruby/profiler/Profiler.cc | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/src/mem/ruby/profiler/Profiler.cc b/src/mem/ruby/profiler/Profiler.cc index 9a963684f..11eb9afab 100644 --- a/src/mem/ruby/profiler/Profiler.cc +++ b/src/mem/ruby/profiler/Profiler.cc @@ -503,33 +503,10 @@ Profiler::printStats(ostream& out, bool short_stats) out << endl; printDelayProfile(out); - printResourceUsage(out); } } void -Profiler::printResourceUsage(ostream& out) const -{ - out << endl; - out << "Resource Usage" << endl; - out << "--------------" << endl; - - int64_t pagesize = getpagesize(); // page size in bytes - out << "page_size: " << pagesize << endl; - - rusage usage; - getrusage (RUSAGE_SELF, &usage); - - out << "user_time: " << usage.ru_utime.tv_sec << endl; - out << "system_time: " << usage.ru_stime.tv_sec << endl; - out << "page_reclaims: " << usage.ru_minflt << endl; - out << "page_faults: " << usage.ru_majflt << endl; - out << "swaps: " << usage.ru_nswap << endl; - out << "block_inputs: " << usage.ru_inblock << endl; - out << "block_outputs: " << usage.ru_oublock << endl; -} - -void Profiler::clearStats() { m_ruby_start = g_system_ptr->curCycle(); |