summaryrefslogtreecommitdiffstats
path: root/chrome/test/page_cycler
diff options
context:
space:
mode:
authorchase@chromium.org <chase@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-11-24 19:36:05 +0000
committerchase@chromium.org <chase@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-11-24 19:36:05 +0000
commitb5b9d4f59b9f8c1e2470c2044d30b315671961c2 (patch)
tree215502ad7586fc5447ce74d05bf8882a94c95e8c /chrome/test/page_cycler
parent7dcd4d5349d17a18b94501a670038154c5a129be (diff)
downloadchromium_src-b5b9d4f59b9f8c1e2470c2044d30b315671961c2.zip
chromium_src-b5b9d4f59b9f8c1e2470c2044d30b315671961c2.tar.gz
chromium_src-b5b9d4f59b9f8c1e2470c2044d30b315671961c2.tar.bz2
Sleep briefly before/after printing page cycler results.
Speculative fix to address bad perf results for reference build. An error message that's being printed at the same time as the test results is believed to be causing the graphing code to incorrectly read those results. BUG=none TEST=sane linux morejs reference graph result Review URL: http://codereview.chromium.org/437024 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@32954 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/test/page_cycler')
-rw-r--r--chrome/test/page_cycler/page_cycler_test.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/chrome/test/page_cycler/page_cycler_test.cc b/chrome/test/page_cycler/page_cycler_test.cc
index 8dcabfd..845391a 100644
--- a/chrome/test/page_cycler/page_cycler_test.cc
+++ b/chrome/test/page_cycler/page_cycler_test.cc
@@ -234,6 +234,8 @@ class PageCyclerTest : public UITest {
RunPageCycler(name, &pages, &timings, use_http);
if (timings.empty())
return;
+ // wait 2 seconds to allow automation messages to print
+ PlatformThread::Sleep(2000);
size_t stop_size = base::GetSystemCommitCharge();
FilePath data_dir;
@@ -248,6 +250,8 @@ class PageCyclerTest : public UITest {
wprintf(L"\nPages: [%ls]\n", pages.c_str());
PrintResultList("times", "", trace_name, timings, "ms",
true /* important */);
+ // wait 2 seconds to allow automation messages to print
+ PlatformThread::Sleep(2000);
}
void RunTest(const char* name, bool use_http) {