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

Issue 2785873002: Detached FrameLoader should not log snapshot trace events (Closed)

Created:
3 years, 8 months ago by Kunihiko Sakamoto
Modified:
3 years, 8 months ago
Reviewers:
kouhei (in TOK)
CC:
chromium-reviews, blink-reviews, loading-reviews_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Detached FrameLoader should not log snapshot trace events FrameLoader emits object lifetime events. The destroy event is logged on detach(), but after detach(), FrameLoader::takeObjectSnapshot() can be called from FrameLoader::clear(). We should not log snapshot events after the destroy event, as that confuses loading metrics (FCP, FMP, TTI). Note for perf sheriffs: This may impact timeToFirstConentfulPaint, timeToFirstMeaningfulPaint and timeToFirstInteractive, as this fixes a bug of these metrics. BUG=706671 Review-Url: https://codereview.chromium.org/2785873002 Cr-Commit-Position: refs/heads/master@{#460703} Committed: https://chromium.googlesource.com/chromium/src/+/dd3783e3fbc682b2140333c56f446c1570cbe4b8

Patch Set 1 #

Total comments: 3

Patch Set 2 : Use boolean flag, rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+9 lines, -3 lines) Patch
M third_party/WebKit/Source/core/loader/FrameLoader.h View 1 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/core/loader/FrameLoader.cpp View 1 3 chunks +8 lines, -3 lines 0 comments Download

Messages

Total messages: 17 (10 generated)
Kunihiko Sakamoto
3 years, 8 months ago (2017-03-30 02:57:23 UTC) #6
kouhei (in TOK)
Relying on m_progressTracker sounds a bit fragile to me https://codereview.chromium.org/2785873002/diff/1/third_party/WebKit/Source/core/loader/FrameLoader.cpp File third_party/WebKit/Source/core/loader/FrameLoader.cpp (right): https://codereview.chromium.org/2785873002/diff/1/third_party/WebKit/Source/core/loader/FrameLoader.cpp#newcode1888 third_party/WebKit/Source/core/loader/FrameLoader.cpp:1888: ...
3 years, 8 months ago (2017-03-30 04:49:22 UTC) #9
Kunihiko Sakamoto
https://codereview.chromium.org/2785873002/diff/1/third_party/WebKit/Source/core/loader/FrameLoader.cpp File third_party/WebKit/Source/core/loader/FrameLoader.cpp (right): https://codereview.chromium.org/2785873002/diff/1/third_party/WebKit/Source/core/loader/FrameLoader.cpp#newcode1888 third_party/WebKit/Source/core/loader/FrameLoader.cpp:1888: if (!m_progressTracker) { On 2017/03/30 04:49:22, kouhei wrote: > ...
3 years, 8 months ago (2017-03-30 05:08:58 UTC) #10
Kunihiko Sakamoto
PTAL https://codereview.chromium.org/2785873002/diff/1/third_party/WebKit/Source/core/loader/FrameLoader.cpp File third_party/WebKit/Source/core/loader/FrameLoader.cpp (right): https://codereview.chromium.org/2785873002/diff/1/third_party/WebKit/Source/core/loader/FrameLoader.cpp#newcode1888 third_party/WebKit/Source/core/loader/FrameLoader.cpp:1888: if (!m_progressTracker) { On 2017/03/30 05:08:58, Kunihiko Sakamoto ...
3 years, 8 months ago (2017-03-30 05:52:22 UTC) #11
kouhei (in TOK)
lgtm
3 years, 8 months ago (2017-03-30 05:56:47 UTC) #13
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/2785873002/20001
3 years, 8 months ago (2017-03-30 05:56:58 UTC) #14
commit-bot: I haz the power
3 years, 8 months ago (2017-03-30 08:58:40 UTC) #17
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as
https://chromium.googlesource.com/chromium/src/+/dd3783e3fbc682b2140333c56f44...

Powered by Google App Engine
This is Rietveld 408576698