From be10204729c107b41d5d7487323c732e9fa09df5 Mon Sep 17 00:00:00 2001 From: Nathan Binkert Date: Wed, 31 Mar 2010 16:56:45 -0700 Subject: style: another ruby style pass --- src/mem/ruby/profiler/AddressProfiler.cc | 2 +- src/mem/ruby/profiler/Profiler.cc | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) (limited to 'src/mem/ruby/profiler') diff --git a/src/mem/ruby/profiler/AddressProfiler.cc b/src/mem/ruby/profiler/AddressProfiler.cc index 2d7d655c0..cebf22fd8 100644 --- a/src/mem/ruby/profiler/AddressProfiler.cc +++ b/src/mem/ruby/profiler/AddressProfiler.cc @@ -47,7 +47,7 @@ lookupTraceForAddress(const Address& addr, AddressMap* record_map) } void -printSorted(ostream& out, int num_of_sequencers, const AddressMap* record_map, +printSorted(ostream& out, int num_of_sequencers, const AddressMap* record_map, string description) { const int records_printed = 100; diff --git a/src/mem/ruby/profiler/Profiler.cc b/src/mem/ruby/profiler/Profiler.cc index 2cc3eddfc..559c16900 100644 --- a/src/mem/ruby/profiler/Profiler.cc +++ b/src/mem/ruby/profiler/Profiler.cc @@ -125,7 +125,7 @@ Profiler::wakeup() << "mbytes_total: " << process_memory_total() << endl; if (process_memory_total() > 0) { - out << "resident_ratio: " + out << "resident_ratio: " << process_memory_resident() / process_memory_total() << endl; } @@ -158,7 +158,7 @@ Profiler::setPeriodicStatsFile(const string& filename) void Profiler::setPeriodicStatsInterval(integer_t period) { - cout << "Recording periodic statistics every " << m_stats_period + cout << "Recording periodic statistics every " << m_stats_period << " Ruby cycles" << endl; m_stats_period = period; @@ -227,7 +227,7 @@ Profiler::printStats(ostream& out, bool short_stats) out << "mbytes_resident: " << process_memory_resident() << endl; out << "mbytes_total: " << process_memory_total() << endl; if (process_memory_total() > 0) { - out << "resident_ratio: " + out << "resident_ratio: " << process_memory_resident()/process_memory_total() << endl; } out << endl; @@ -633,7 +633,7 @@ static double process_memory_total() { // 4kB page size, 1024*1024 bytes per MB, - const double MULTIPLIER = 4096.0 / (1024.0 * 1024.0); + const double MULTIPLIER = 4096.0 / (1024.0 * 1024.0); ifstream proc_file; proc_file.open("/proc/self/statm"); int total_size_in_pages = 0; -- cgit v1.2.3