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

Issue 1470133002: Log some very basic timers in WebUI tests using PolymerTest (Closed)

Created:
5 years, 1 month ago by stevenjb
Modified:
5 years ago
Reviewers:
Dan Beam, michaelpg
CC:
chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Log some very basic timers in WebUI tests using PolymerTest This introduces some very simple timers as a starting point for benchmarking WebUI pages. BUG=560432 Committed: https://crrev.com/ee04f7688948ac3f8070a72dd554083a768f9a2f Cr-Commit-Position: refs/heads/master@{#361407}

Patch Set 1 #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+34 lines, -0 lines) Patch
M chrome/test/data/webui/polymer_browser_test_base.js View 2 chunks +34 lines, -0 lines 3 comments Download

Messages

Total messages: 17 (4 generated)
stevenjb
5 years, 1 month ago (2015-11-23 23:09:19 UTC) #2
Dan Beam
https://codereview.chromium.org/1470133002/diff/1/chrome/test/data/webui/polymer_browser_test_base.js File chrome/test/data/webui/polymer_browser_test_base.js (right): https://codereview.chromium.org/1470133002/diff/1/chrome/test/data/webui/polymer_browser_test_base.js#newcode125 chrome/test/data/webui/polymer_browser_test_base.js:125: testing.Test.prototype.tearDown.call(this); nit: can we use console.time() + console.timeEnd()?
5 years, 1 month ago (2015-11-23 23:10:52 UTC) #3
stevenjb
https://codereview.chromium.org/1470133002/diff/1/chrome/test/data/webui/polymer_browser_test_base.js File chrome/test/data/webui/polymer_browser_test_base.js (right): https://codereview.chromium.org/1470133002/diff/1/chrome/test/data/webui/polymer_browser_test_base.js#newcode125 chrome/test/data/webui/polymer_browser_test_base.js:125: testing.Test.prototype.tearDown.call(this); On 2015/11/23 23:10:51, Dan Beam wrote: > nit: ...
5 years, 1 month ago (2015-11-23 23:24:41 UTC) #4
Dan Beam
lgtm but maybe consider doing this in testing.Test instead? non-polymer UIs also have flakiness/timeout issues, ...
5 years, 1 month ago (2015-11-23 23:29:56 UTC) #5
stevenjb
On 2015/11/23 23:29:56, Dan Beam wrote: > lgtm but maybe consider doing this in testing.Test ...
5 years, 1 month ago (2015-11-23 23:32:11 UTC) #6
michaelpg
lgtm
5 years, 1 month ago (2015-11-24 00:10:02 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1470133002/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1470133002/1
5 years, 1 month ago (2015-11-24 00:20:35 UTC) #9
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_chromeos_rel_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_chromeos_rel_ng/builds/133390)
5 years, 1 month ago (2015-11-24 03:41:34 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1470133002/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1470133002/1
5 years ago (2015-11-24 18:36:17 UTC) #13
commit-bot: I haz the power
Committed patchset #1 (id:1)
5 years ago (2015-11-24 19:07:08 UTC) #14
commit-bot: I haz the power
Patchset 1 (id:??) landed as https://crrev.com/ee04f7688948ac3f8070a72dd554083a768f9a2f Cr-Commit-Position: refs/heads/master@{#361407}
5 years ago (2015-11-24 19:07:57 UTC) #15
michaelpg
https://codereview.chromium.org/1470133002/diff/1/chrome/test/data/webui/polymer_browser_test_base.js File chrome/test/data/webui/polymer_browser_test_base.js (right): https://codereview.chromium.org/1470133002/diff/1/chrome/test/data/webui/polymer_browser_test_base.js#newcode120 chrome/test/data/webui/polymer_browser_test_base.js:120: console.log('Page load time: ' + delta + " ms"); ...
5 years ago (2015-11-24 23:26:19 UTC) #16
stevenjb
5 years ago (2015-11-24 23:28:40 UTC) #17
Message was sent while issue was closed.
Sure, I can do that in a follow-up.


On Tue, Nov 24, 2015 at 4:26 PM, <michaelpg@chromium.org> wrote:

>
>
>
https://codereview.chromium.org/1470133002/diff/1/chrome/test/data/webui/poly...
> File chrome/test/data/webui/polymer_browser_test_base.js (right):
>
>
>
https://codereview.chromium.org/1470133002/diff/1/chrome/test/data/webui/poly...
> chrome/test/data/webui/polymer_browser_test_base.js:120:
> console.log('Page load time: ' + delta + " ms");
> Turns out floats are really annoying to read...
>
> Could we round delta? or if we want to keep decimal places for some
> reason, Math.round(delta * 100) / 100
>
> https://codereview.chromium.org/1470133002/
>

-- 
You received this message because you are subscribed to the Google Groups
"Chromium-reviews" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to chromium-reviews+unsubscribe@chromium.org.

Powered by Google App Engine
This is Rietveld 408576698