Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(33)

Unified Diff: chrome/test/perf/page_cycler_test.cc

Issue 11234012: Updated units for operation counts. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Added other missing units Created 8 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « build/common.croc ('k') | chrome/test/perf/perf_test.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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:
« no previous file with comments | « build/common.croc ('k') | chrome/test/perf/perf_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698