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

Issue 392613002: Telemetry: Initialize smoothness and thread_times metrics before page load, not after. (Closed)

Created:
6 years, 5 months ago by Dominik Grewe
Modified:
6 years, 5 months ago
Reviewers:
picksi, tonyg, Sami
CC:
chromium-reviews, telemetry+watch_chromium.org, picksi1
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

Telemetry: Initialize smoothness and thread_times metrics before page load, not after. Currently both smoothness and thread_times initialize their metrics after page load. This leads to a gap between the page load and the page actions starting. This patch moves the initialization before the page load, thus eliminating the gap. It is safe to do so because smoothness and thread_times require a page load before each run (even when repeating the same page). Note to perf sheriffs: This patch is likely to cause performance numbers to worsen, because the browser is often more busy immediately after page load. If you get alerts related to this CL, feel free to ignore them. If there is a reference build for the bot, the number for the reference build should also change accordingly. BUG=392895 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=285297 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=285616

Patch Set 1 #

Total comments: 2

Patch Set 2 : fix testSyntheticDelayConfiguration #

Total comments: 3

Patch Set 3 : Split Start into SetUp and Start for smoothness and timeline controller. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+21 lines, -8 lines) Patch
M tools/perf/measurements/loading_trace.py View 1 2 1 chunk +2 lines, -1 line 0 comments Download
M tools/perf/measurements/repaint.py View 1 2 1 chunk +2 lines, -1 line 0 comments Download
M tools/perf/measurements/smoothness.py View 1 2 1 chunk +5 lines, -2 lines 0 comments Download
M tools/perf/measurements/smoothness_controller.py View 1 2 2 chunks +3 lines, -1 line 0 comments Download
M tools/perf/measurements/smoothness_unittest.py View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M tools/perf/measurements/thread_times.py View 1 2 2 chunks +5 lines, -2 lines 0 comments Download
M tools/perf/measurements/timeline_controller.py View 1 2 2 chunks +3 lines, -1 line 0 comments Download

Messages

Total messages: 28 (0 generated)
Dominik Grewe
ptal
6 years, 5 months ago (2014-07-14 14:43:01 UTC) #1
Sami
lgtm. Could you add a note to the perf sheriff in the description since this ...
6 years, 5 months ago (2014-07-14 14:51:10 UTC) #2
Dominik Grewe
On 2014/07/14 14:51:10, Sami wrote: > lgtm. Could you add a note to the perf ...
6 years, 5 months ago (2014-07-14 15:07:15 UTC) #3
tonyg
lgtm https://codereview.chromium.org/392613002/diff/1/tools/perf/measurements/smoothness.py File tools/perf/measurements/smoothness.py (right): https://codereview.chromium.org/392613002/diff/1/tools/perf/measurements/smoothness.py#newcode26 tools/perf/measurements/smoothness.py:26: self._power_metric.Start(page, tab) Could we please keep this in ...
6 years, 5 months ago (2014-07-14 16:10:16 UTC) #4
Dominik Grewe
https://codereview.chromium.org/392613002/diff/1/tools/perf/measurements/smoothness.py File tools/perf/measurements/smoothness.py (right): https://codereview.chromium.org/392613002/diff/1/tools/perf/measurements/smoothness.py#newcode26 tools/perf/measurements/smoothness.py:26: self._power_metric.Start(page, tab) On 2014/07/14 16:10:15, tonyg wrote: > Could ...
6 years, 5 months ago (2014-07-14 16:50:25 UTC) #5
tonyg
On 2014/07/14 16:50:25, Dominik Grewe wrote: > https://codereview.chromium.org/392613002/diff/1/tools/perf/measurements/smoothness.py > File tools/perf/measurements/smoothness.py (right): > > https://codereview.chromium.org/392613002/diff/1/tools/perf/measurements/smoothness.py#newcode26 ...
6 years, 5 months ago (2014-07-14 17:06:07 UTC) #6
Dominik Grewe
The CQ bit was checked by dominikg@chromium.org
6 years, 5 months ago (2014-07-15 09:06:51 UTC) #7
Dominik Grewe
The CQ bit was unchecked by dominikg@chromium.org
6 years, 5 months ago (2014-07-15 09:06:52 UTC) #8
Dominik Grewe
The CQ bit was checked by dominikg@chromium.org
6 years, 5 months ago (2014-07-17 10:34:00 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dominikg@chromium.org/392613002/1
6 years, 5 months ago (2014-07-17 10:35:20 UTC) #10
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: linux_chromium_rel on tryserver.chromium ...
6 years, 5 months ago (2014-07-17 12:08:09 UTC) #11
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 5 months ago (2014-07-17 12:29:10 UTC) #12
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_rel on tryserver.chromium (http://build.chromium.org/p/tryserver.chromium/builders/linux_chromium_rel/builds/52571)
6 years, 5 months ago (2014-07-17 12:29:11 UTC) #13
Dominik Grewe
Two tests failed: I fixed testSyntheticDelayConfiguration by calling WillNavigateToPage instead of WillRunActions in the unit ...
6 years, 5 months ago (2014-07-18 11:20:13 UTC) #14
picksi
Ponderings on the issue. https://codereview.chromium.org/392613002/diff/20001/tools/perf/measurements/smoothness_unittest.py File tools/perf/measurements/smoothness_unittest.py (right): https://codereview.chromium.org/392613002/diff/20001/tools/perf/measurements/smoothness_unittest.py#newcode64 tools/perf/measurements/smoothness_unittest.py:64: measurement.WillNavigateToPage(test_page, tab) Are we just ...
6 years, 5 months ago (2014-07-18 11:30:59 UTC) #15
Dominik Grewe
It seems like the first console.time is being discarded when we do a page navigation. ...
6 years, 5 months ago (2014-07-18 16:10:51 UTC) #16
picksi
https://codereview.chromium.org/392613002/diff/20001/tools/perf/measurements/smoothness_unittest.py File tools/perf/measurements/smoothness_unittest.py (right): https://codereview.chromium.org/392613002/diff/20001/tools/perf/measurements/smoothness_unittest.py#newcode64 tools/perf/measurements/smoothness_unittest.py:64: measurement.WillNavigateToPage(test_page, tab) Can it safely be doubly initialized without ...
6 years, 5 months ago (2014-07-18 16:47:20 UTC) #17
Dominik Grewe
On 2014/07/18 16:47:20, picksi wrote: > https://codereview.chromium.org/392613002/diff/20001/tools/perf/measurements/smoothness_unittest.py > File tools/perf/measurements/smoothness_unittest.py (right): > > https://codereview.chromium.org/392613002/diff/20001/tools/perf/measurements/smoothness_unittest.py#newcode64 > ...
6 years, 5 months ago (2014-07-18 17:13:50 UTC) #18
Dominik Grewe
On 2014/07/18 17:13:50, Dominik Grewe wrote: > On 2014/07/18 16:47:20, picksi wrote: > > > ...
6 years, 5 months ago (2014-07-22 12:22:42 UTC) #19
picksi
Yes, you're right!
6 years, 5 months ago (2014-07-22 13:07:30 UTC) #20
tonyg
lgtm
6 years, 5 months ago (2014-07-24 14:50:31 UTC) #21
commit-bot: I haz the power
Change committed as 285297
6 years, 5 months ago (2014-07-24 16:43:32 UTC) #22
tonyg
A revert of this CL has been created in https://codereview.chromium.org/419623002/ by tonyg@chromium.org. The reason for ...
6 years, 5 months ago (2014-07-24 22:34:53 UTC) #23
Dominik Grewe
On 2014/07/24 22:34:53, tonyg wrote: > A revert of this CL has been created in ...
6 years, 5 months ago (2014-07-25 12:35:07 UTC) #24
Dominik Grewe
Re-committing because the fix has now landed (https://codereview.chromium.org/418133008/)
6 years, 5 months ago (2014-07-25 17:43:16 UTC) #25
Dominik Grewe
The CQ bit was checked by dominikg@chromium.org
6 years, 5 months ago (2014-07-25 17:43:20 UTC) #26
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dominikg@chromium.org/392613002/40001
6 years, 5 months ago (2014-07-25 17:44:17 UTC) #27
commit-bot: I haz the power
6 years, 5 months ago (2014-07-25 17:57:12 UTC) #28
Message was sent while issue was closed.
Change committed as 285616

Powered by Google App Engine
This is Rietveld 408576698