summaryrefslogtreecommitdiffstats
path: root/tools/page_cycler
diff options
context:
space:
mode:
authortonyg@chromium.org <tonyg@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-06-15 20:47:48 +0000
committertonyg@chromium.org <tonyg@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-06-15 20:47:48 +0000
commit85e18211128257fb9f530a001e3ea7b778211a6f (patch)
tree511e9ce87cc805d5441fb5223c0a29677fc29818 /tools/page_cycler
parent7c72ecaf90923fec86c166f5bd1aed1aab550407 (diff)
downloadchromium_src-85e18211128257fb9f530a001e3ea7b778211a6f.zip
chromium_src-85e18211128257fb9f530a001e3ea7b778211a6f.tar.gz
chromium_src-85e18211128257fb9f530a001e3ea7b778211a6f.tar.bz2
Log page cycler results to console.
BUG=None TEST=Manual Review URL: http://codereview.chromium.org/7097018 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@89244 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'tools/page_cycler')
-rw-r--r--tools/page_cycler/common/head.js17
1 files changed, 9 insertions, 8 deletions
diff --git a/tools/page_cycler/common/head.js b/tools/page_cycler/common/head.js
index a7fa9b5..19a38dc 100644
--- a/tools/page_cycler/common/head.js
+++ b/tools/page_cycler/common/head.js
@@ -50,6 +50,13 @@ function __ontimeout() {
window.gc();
}
+ var timings = __tl;
+ var oldTimings = __get_timings();
+ if (oldTimings != "") {
+ timings = oldTimings + "," + timings;
+ }
+ __set_timings(timings);
+
var ts = (new Date()).getTime();
var tlag = (ts - __te) - __TIMEOUT;
if (tlag > 0)
@@ -57,17 +64,11 @@ function __ontimeout() {
if (__cycle == (__pages().length * __iterations)) {
document.cookie = "__pc_done=1; path=/";
doc = "../../common/report.html";
+ if (window.console) console.log("times: [" + __get_timings() + "]");
} else {
- doc = "../" + __pages()[__page] + "/index.html"
+ doc = "../" + __pages()[__page] + "/index.html";
}
- var timings = __tl;
- var oldTimings = __get_timings();
- if (oldTimings != "") {
- timings = oldTimings + "," + timings;
- }
- __set_timings(timings);
-
var url = doc + "?n=" + __iterations + "&i=" + __cycle + "&p=" + __page +
"&ts=" + ts + "&td=" + __td + "&tf=" + __tf;
document.location.href = url;