summaryrefslogtreecommitdiffstats
path: root/chrome/test/page_cycler
diff options
context:
space:
mode:
authorpamg@google.com <pamg@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-11-07 00:12:52 +0000
committerpamg@google.com <pamg@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-11-07 00:12:52 +0000
commit3ab3047674a1cd89863e1d8f5ff120f2c287b8ef (patch)
treedd6638263f2401b38659893d9541f7c2a33625a7 /chrome/test/page_cycler
parent3c44868adca04a51ee5c33d02279ad9c626e9dac (diff)
downloadchromium_src-3ab3047674a1cd89863e1d8f5ff120f2c287b8ef.zip
chromium_src-3ab3047674a1cd89863e1d8f5ff120f2c287b8ef.tar.gz
chromium_src-3ab3047674a1cd89863e1d8f5ff120f2c287b8ef.tar.bz2
Add prefixes to I/O data trace names so they can be distinguished on the
waterfall. BUG=4173 TEST=look at page-cycler step on waterfall Review URL: http://codereview.chromium.org/9658 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@4936 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/test/page_cycler')
-rw-r--r--chrome/test/page_cycler/page_cycler_test.cc24
1 files changed, 16 insertions, 8 deletions
diff --git a/chrome/test/page_cycler/page_cycler_test.cc b/chrome/test/page_cycler/page_cycler_test.cc
index 25883aa..aab3eed 100644
--- a/chrome/test/page_cycler/page_cycler_test.cc
+++ b/chrome/test/page_cycler/page_cycler_test.cc
@@ -113,36 +113,44 @@ class PageCyclerTest : public UITest {
std::wstring chrome_name =
(pid == chrome_filter.browser_process_id()) ? L"_b" : L"_r";
- PrintResult(L"read_op", chrome_name, chrome_name + test_name,
+ PrintResult(L"read_op", chrome_name,
+ L"r_op" + chrome_name + test_name,
static_cast<size_t>(io_counters.ReadOperationCount), L"",
false /* not important */);
- PrintResult(L"write_op", chrome_name, chrome_name + test_name,
+ PrintResult(L"write_op", chrome_name,
+ L"w_op" + chrome_name + test_name,
static_cast<size_t>(io_counters.WriteOperationCount), L"",
false /* not important */);
- PrintResult(L"other_op", chrome_name, chrome_name + test_name,
+ PrintResult(L"other_op", chrome_name,
+ L"o_op" + chrome_name + test_name,
static_cast<size_t>(io_counters.OtherOperationCount), L"",
false /* not important */);
size_t total = static_cast<size_t>(io_counters.ReadOperationCount +
io_counters.WriteOperationCount +
io_counters.OtherOperationCount);
- PrintResult(L"total_op", chrome_name, chrome_name + test_name,
+ PrintResult(L"total_op", chrome_name,
+ L"IO_op" + chrome_name + test_name,
total, L"", true /* important */);
- PrintResult(L"read_byte", chrome_name, chrome_name + test_name,
+ PrintResult(L"read_byte", chrome_name,
+ L"r_b" + chrome_name + test_name,
static_cast<size_t>(io_counters.ReadTransferCount / 1024),
L"kb", false /* not important */);
- PrintResult(L"write_byte", chrome_name, chrome_name + test_name,
+ PrintResult(L"write_byte", chrome_name,
+ L"w_b" + chrome_name + test_name,
static_cast<size_t>(io_counters.WriteTransferCount / 1024),
L"kb", false /* not important */);
- PrintResult(L"other_byte", chrome_name, chrome_name + test_name,
+ PrintResult(L"other_byte", chrome_name,
+ L"o_b" + chrome_name + test_name,
static_cast<size_t>(io_counters.OtherTransferCount / 1024),
L"kb", false /* not important */);
total = static_cast<size_t>((io_counters.ReadTransferCount +
io_counters.WriteTransferCount +
io_counters.OtherTransferCount) / 1024);
- PrintResult(L"total_byte", chrome_name, chrome_name + test_name,
+ PrintResult(L"total_byte", chrome_name,
+ L"IO_b" + chrome_name + test_name,
total, L"kb", true /* important */);