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

Issue 2448553002: A different approach to fixing FirstWebContentsProfiler with PlzNavigate. (Closed)

Created:
4 years, 1 month ago by jam
Modified:
4 years, 1 month ago
Reviewers:
gab
CC:
chromium-reviews, asvitkine+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

A different approach to fixing FirstWebContentsProfiler with PlzNavigate. The previous fix depended on ensuring we add hooks to all the code paths that cause the first active WebContents to get added to the tab strip. We're still missing some code paths. So instead restore the old behavior. Even though it did miss navigation starts, fix that by using the time from NavigationHandle for PlzNavigate. This should restore the metrics for non-PlzNavigate case. For PlzNavigate, the start timings were already different regardless from non-PlzNavigate because of how navigations are structured very differently. This change shouldn't affects things too much for PlzNavigate though, because the only difference should be the IPC time from the renderer to the browser thread. BUG=650349 Committed: https://crrev.com/f4ba53f555685c67fc3fb4ffdb18c4ff7baea19c Cr-Commit-Position: refs/heads/master@{#427144}

Patch Set 1 : debug #

Patch Set 2 #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+35 lines, -19 lines) Patch
M chrome/browser/metrics/chrome_browser_main_extra_parts_metrics.cc View 1 2 chunks +5 lines, -0 lines 0 comments Download
M chrome/browser/metrics/first_web_contents_profiler.h View 1 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/metrics/first_web_contents_profiler.cc View 1 3 chunks +29 lines, -9 lines 3 comments Download
M chrome/browser/sessions/session_restore.cc View 1 2 chunks +0 lines, -2 lines 0 comments Download
M chrome/browser/ui/browser_navigator.cc View 1 2 chunks +0 lines, -7 lines 0 comments Download

Messages

Total messages: 20 (13 generated)
jam
4 years, 1 month ago (2016-10-24 19:24:09 UTC) #9
gab
https://codereview.chromium.org/2448553002/diff/20001/chrome/browser/metrics/first_web_contents_profiler.cc File chrome/browser/metrics/first_web_contents_profiler.cc (right): https://codereview.chromium.org/2448553002/diff/20001/chrome/browser/metrics/first_web_contents_profiler.cc#newcode94 chrome/browser/metrics/first_web_contents_profiler.cc:94: // will miss this signal. Instead we record it ...
4 years, 1 month ago (2016-10-24 19:48:17 UTC) #12
gab
lgtm w/ suggestion https://codereview.chromium.org/2448553002/diff/20001/chrome/browser/metrics/first_web_contents_profiler.cc File chrome/browser/metrics/first_web_contents_profiler.cc (right): https://codereview.chromium.org/2448553002/diff/20001/chrome/browser/metrics/first_web_contents_profiler.cc#newcode94 chrome/browser/metrics/first_web_contents_profiler.cc:94: // will miss this signal. Instead ...
4 years, 1 month ago (2016-10-24 19:58:15 UTC) #13
jam
https://codereview.chromium.org/2448553002/diff/20001/chrome/browser/metrics/first_web_contents_profiler.cc File chrome/browser/metrics/first_web_contents_profiler.cc (right): https://codereview.chromium.org/2448553002/diff/20001/chrome/browser/metrics/first_web_contents_profiler.cc#newcode94 chrome/browser/metrics/first_web_contents_profiler.cc:94: // will miss this signal. Instead we record it ...
4 years, 1 month ago (2016-10-24 20:39:43 UTC) #14
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/2448553002/20001
4 years, 1 month ago (2016-10-24 20:40:29 UTC) #16
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years, 1 month ago (2016-10-24 20:58:59 UTC) #18
commit-bot: I haz the power
4 years, 1 month ago (2016-10-24 21:00:45 UTC) #20
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/f4ba53f555685c67fc3fb4ffdb18c4ff7baea19c
Cr-Commit-Position: refs/heads/master@{#427144}

Powered by Google App Engine
This is Rietveld 408576698