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

Issue 2862103002: Fix main frame detection in loading metrics. (Closed)

Created:
3 years, 7 months ago by ulan
Modified:
3 years, 7 months ago
CC:
catapult-reviews_chromium.org, tracing-review_chromium.org
Target Ref:
refs/heads/master
Project:
catapult
Visibility:
Public.

Description

Fix main frame detection in loading metrics. The existing way to detect the main frame produces false positives as described in https://crbug.com/692112#c10. This patch uses a recently added trace event that marks the main frame (category='loading', title='markAsMainFrame') to make main frame detection accurate. All detection logic is encapsulated in MainFrameHelper class. BUG=chromium:692112 Review-Url: https://codereview.chromium.org/2862103002 Committed: https://chromium.googlesource.com/external/github.com/catapult-project/catapult/+/9e7bc18ce70595be32d8534b4309aff83ac78434

Patch Set 1 #

Patch Set 2 : fix #

Patch Set 3 : add comments and tests #

Patch Set 4 : var -> const,let #

Total comments: 6

Patch Set 5 : add comments for tests #

Total comments: 6

Patch Set 6 : Address Ben's comments #

Patch Set 7 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+458 lines, -66 lines) Patch
M tracing/tracing/extras/chrome/estimated_input_latency_test.html View 1 2 3 4 5 6 3 chunks +10 lines, -4 lines 0 comments Download
M tracing/tracing/metrics/system_health/expected_queueing_time_metric_test.html View 1 2 3 4 5 6 1 chunk +7 lines, -0 lines 0 comments Download
M tracing/tracing/metrics/system_health/loading_metric.html View 1 2 3 4 5 6 14 chunks +180 lines, -62 lines 0 comments Download
M tracing/tracing/metrics/system_health/loading_metric_test.html View 1 2 3 4 5 6 12 chunks +247 lines, -0 lines 0 comments Download
M tracing/tracing/metrics/system_health/power_metric_test.html View 1 2 3 4 5 6 1 chunk +7 lines, -0 lines 0 comments Download
M tracing/tracing/metrics/v8/runtime_stats_metric_test.html View 1 2 3 4 5 6 1 chunk +7 lines, -0 lines 0 comments Download

Messages

Total messages: 28 (15 generated)
ulan
PTAL. The main change is in loading_metric.html and loading_metric_test.html. All other changes are test adjustments.
3 years, 7 months ago (2017-05-05 14:54:55 UTC) #4
tdresser
https://codereview.chromium.org/2862103002/diff/60001/tracing/tracing/metrics/system_health/loading_metric.html File tracing/tracing/metrics/system_health/loading_metric.html (right): https://codereview.chromium.org/2862103002/diff/60001/tracing/tracing/metrics/system_health/loading_metric.html#newcode48 tracing/tracing/metrics/system_health/loading_metric.html:48: class MainFrameHelper { I haven't found any examples of ...
3 years, 7 months ago (2017-05-08 18:12:46 UTC) #5
ulan
https://codereview.chromium.org/2862103002/diff/60001/tracing/tracing/metrics/system_health/loading_metric.html File tracing/tracing/metrics/system_health/loading_metric.html (right): https://codereview.chromium.org/2862103002/diff/60001/tracing/tracing/metrics/system_health/loading_metric.html#newcode48 tracing/tracing/metrics/system_health/loading_metric.html:48: class MainFrameHelper { On 2017/05/08 18:12:46, tdresser wrote: > ...
3 years, 7 months ago (2017-05-10 10:44:20 UTC) #6
nednguyen
+Ben is much better reviewer of tracing style than me.
3 years, 7 months ago (2017-05-10 10:47:09 UTC) #8
benjhayden
Thanks, Ned! A few comments then lgtm https://codereview.chromium.org/2862103002/diff/80001/tracing/tracing/metrics/system_health/loading_metric.html File tracing/tracing/metrics/system_health/loading_metric.html (right): https://codereview.chromium.org/2862103002/diff/80001/tracing/tracing/metrics/system_health/loading_metric.html#newcode44 tracing/tracing/metrics/system_health/loading_metric.html:44: * The ...
3 years, 7 months ago (2017-05-10 19:03:20 UTC) #9
ulan
Thanks https://codereview.chromium.org/2862103002/diff/80001/tracing/tracing/metrics/system_health/loading_metric.html File tracing/tracing/metrics/system_health/loading_metric.html (right): https://codereview.chromium.org/2862103002/diff/80001/tracing/tracing/metrics/system_health/loading_metric.html#newcode44 tracing/tracing/metrics/system_health/loading_metric.html:44: * The public interface of this class consists ...
3 years, 7 months ago (2017-05-11 10:21:05 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2862103002/100001
3 years, 7 months ago (2017-05-11 10:21:35 UTC) #13
commit-bot: I haz the power
Try jobs failed on following builders: Catapult Presubmit on master.tryserver.client.catapult (JOB_FAILED, https://build.chromium.org/p/tryserver.client.catapult/builders/Catapult%20Presubmit/builds/7123)
3 years, 7 months ago (2017-05-11 10:23:45 UTC) #15
ulan
Tim, the CL is ready to land. Do you have any more comments? :)
3 years, 7 months ago (2017-05-15 16:22:27 UTC) #20
tdresser
Sorry, LGTM.
3 years, 7 months ago (2017-05-15 16:28:21 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2862103002/120001
3 years, 7 months ago (2017-05-15 16:34:57 UTC) #24
commit-bot: I haz the power
Committed patchset #7 (id:120001) as https://chromium.googlesource.com/external/github.com/catapult-project/catapult/+/9e7bc18ce70595be32d8534b4309aff83ac78434
3 years, 7 months ago (2017-05-15 16:59:13 UTC) #27
ulan
3 years, 7 months ago (2017-05-16 08:36:11 UTC) #28
Message was sent while issue was closed.
A revert of this CL (patchset #7 id:120001) has been created in
https://codereview.chromium.org/2883233002/ by ulan@chromium.org.

The reason for reverting is: Test failures on Mac:
https://uberchromegw.corp.google.com/i/chromium.mac/builders/Mac10.12%20Tests....

Powered by Google App Engine
This is Rietveld 408576698