summaryrefslogtreecommitdiffstats
path: root/chrome/test
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/test')
-rw-r--r--chrome/test/memory_test/memory_test.cc3
-rw-r--r--chrome/test/page_cycler/page_cycler_test.cc6
-rw-r--r--chrome/test/ui/ui_test.cc7
-rw-r--r--chrome/test/ui/ui_test.h4
4 files changed, 13 insertions, 7 deletions
diff --git a/chrome/test/memory_test/memory_test.cc b/chrome/test/memory_test/memory_test.cc
index f572406..5284bb8 100644
--- a/chrome/test/memory_test/memory_test.cc
+++ b/chrome/test/memory_test/memory_test.cc
@@ -227,7 +227,8 @@ class MemoryTest : public UITest {
size_t stop_size = base::GetSystemCommitCharge();
PrintIOPerfInfo(test_name, user_data_dir_);
PrintMemoryUsageInfo(test_name, user_data_dir_);
- PrintSystemCommitCharge(test_name, stop_size - start_size);
+ PrintSystemCommitCharge(test_name, stop_size - start_size,
+ true /* important */);
}
private:
diff --git a/chrome/test/page_cycler/page_cycler_test.cc b/chrome/test/page_cycler/page_cycler_test.cc
index 234b021..40e5372 100644
--- a/chrome/test/page_cycler/page_cycler_test.cc
+++ b/chrome/test/page_cycler/page_cycler_test.cc
@@ -244,7 +244,8 @@ class PageCyclerTest : public UITest {
PrintMemoryUsageInfo(suffix, data_dir);
PrintIOPerfInfo(suffix, data_dir);
- PrintSystemCommitCharge(suffix, stop_size - start_size);
+ PrintSystemCommitCharge(suffix, stop_size - start_size,
+ false /* not important */);
std::string trace_name = "t" + std::string(suffix);
wprintf(L"\nPages: [%ls]\n", pages.c_str());
@@ -294,7 +295,8 @@ class PageCyclerReferenceTest : public PageCyclerTest {
PrintMemoryUsageInfo("_ref", data_dir);
PrintIOPerfInfo("_ref", data_dir);
- PrintSystemCommitCharge("_ref", stop_size - start_size);
+ PrintSystemCommitCharge("_ref", stop_size - start_size,
+ false /* not important */);
PrintResultList("times", "", "t_ref", timings, "ms",
true /* important */);
diff --git a/chrome/test/ui/ui_test.cc b/chrome/test/ui/ui_test.cc
index 893ad9a..b243140 100644
--- a/chrome/test/ui/ui_test.cc
+++ b/chrome/test/ui/ui_test.cc
@@ -1419,8 +1419,9 @@ void UITest::PrintMemoryUsageInfo(const char* test_name, FilePath data_dir) {
false /* not important */);
}
-void UITest::PrintSystemCommitCharge(const char* test_name, size_t charge) {
+void UITest::PrintSystemCommitCharge(const char* test_name,
+ size_t charge,
+ bool important) {
std::string trace_name(test_name);
- PrintResult("commit_charge", "", "cc" + trace_name, charge, "kb",
- false /* important */);
+ PrintResult("commit_charge", "", "cc" + trace_name, charge, "kb", important);
}
diff --git a/chrome/test/ui/ui_test.h b/chrome/test/ui/ui_test.h
index 81db9e1..22de5c3 100644
--- a/chrome/test/ui/ui_test.h
+++ b/chrome/test/ui/ui_test.h
@@ -459,7 +459,9 @@ class UITest : public testing::Test {
void PrintMemoryUsageInfo(const char* test_name, FilePath data_dir);
// Prints memory commit charge stats for use by perf graphs.
- void PrintSystemCommitCharge(const char* test_name, size_t charge);
+ void PrintSystemCommitCharge(const char* test_name,
+ size_t charge,
+ bool important);
private:
// Check that no processes related to Chrome exist, displaying