ruby: profiler: removes function resourceUsage()
authorNilay Vaish <nilay@cs.wisc.edu>
Fri, 6 Sep 2013 21:21:32 +0000 (16:21 -0500)
committerNilay Vaish <nilay@cs.wisc.edu>
Fri, 6 Sep 2013 21:21:32 +0000 (16:21 -0500)
src/mem/ruby/profiler/Profiler.cc

index 9a963684fe6df78959f0b2f6e531ea9e6b9577a3..11eb9afabc11b1be416dee1de301b7bf06f63b83 100644 (file)
@@ -503,32 +503,9 @@ 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()
 {