| Index: chrome/test/perf/page_cycler_test.cc
|
| diff --git a/chrome/test/perf/page_cycler_test.cc b/chrome/test/perf/page_cycler_test.cc
|
| index 840a8527665c65e6bace94f9cfaf8da27f20fe63..670380c500b78580bc90d6376a2b7afa95a75e5c 100644
|
| --- a/chrome/test/perf/page_cycler_test.cc
|
| +++ b/chrome/test/perf/page_cycler_test.cc
|
| @@ -269,7 +269,8 @@ class PageCyclerTest : public UIPerfTest {
|
| }
|
|
|
| private:
|
| - void PrintMemoryHistogram(const std::string& name) {
|
| + void PrintMemoryHistogram(const std::string& name,
|
| + const std::string& units) {
|
| scoped_refptr<TabProxy> tab(GetActiveTab());
|
| ASSERT_TRUE(tab.get());
|
| std::wstring whistogram;
|
| @@ -281,17 +282,17 @@ class PageCyclerTest : public UIPerfTest {
|
| base::SysUTF8ToWide(name) + L"\") : '')",
|
| &whistogram));
|
| std::string histogram = base::SysWideToNativeMB(whistogram);
|
| - printf("HISTOGRAM %s: %s = %s\n",
|
| - name.c_str(), name.c_str(), histogram.c_str());
|
| + printf("HISTOGRAM %s: %s = %s %s\n",
|
| + name.c_str(), name.c_str(), histogram.c_str(), units.c_str());
|
| }
|
|
|
| void PrintMemoryHistograms() {
|
| ASSERT_NO_FATAL_FAILURE(PrintMemoryHistogram(
|
| - "V8.MemoryExternalFragmentationTotal"));
|
| + "V8.MemoryExternalFragmentationTotal", "percent"));
|
| ASSERT_NO_FATAL_FAILURE(PrintMemoryHistogram(
|
| - "V8.MemoryHeapSampleTotalCommitted"));
|
| + "V8.MemoryHeapSampleTotalCommitted", "kb"));
|
| ASSERT_NO_FATAL_FAILURE(PrintMemoryHistogram(
|
| - "V8.MemoryHeapSampleTotalUsed"));
|
| + "V8.MemoryHeapSampleTotalUsed", "kb"));
|
| }
|
|
|
| protected:
|
|
|