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

Issue 2712773002: Add trace event for detecting main frame in loading metrics. (Closed)

Created:
3 years, 10 months ago by ulan
Modified:
3 years, 9 months ago
CC:
Charlie Harrison, Kunihiko Sakamoto, kouhei (in TOK), chromium-reviews, mlamouri+watch-content_chromium.org, creis+watch_chromium.org, nasko+codewatch_chromium.org, jam, dglazkov+blink, darin-cc_chromium.org, blink-reviews, kinuko+watch, blink-reviews-api_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Add trace event for detecting main frame in loading metrics. The loading metrics use trace events with the "frame" argument to compute the time to FCP, FMP, TTI. Example: https://goo.gl/U1qsqW. In order to work properly the metrics need a way to filter out all events that are not related to the main frame of the renderer. This patch adds a trace event named "markAsMainFrame" in the "loading" category with the "frame" argument equal to the local frame address in - WebLocalFrameImpl::initializeCoreFrame, - WebFrame::swap. BUG=692112 Review-Url: https://codereview.chromium.org/2712773002 Cr-Commit-Position: refs/heads/master@{#454852} Committed: https://chromium.googlesource.com/chromium/src/+/88feea0a921c2a57904b09c58f815e14f4def106

Patch Set 1 #

Patch Set 2 : comment #

Total comments: 2

Patch Set 3 : trace in WebLocalFrameImpl::initializeCoreFrame and WebFrame::swap #

Patch Set 4 : revert header change #

Patch Set 5 : fix condition #

Unified diffs Side-by-side diffs Delta from patch set Stats (+11 lines, -0 lines) Patch
M third_party/WebKit/Source/web/WebFrame.cpp View 1 2 3 2 chunks +5 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/web/WebLocalFrameImpl.cpp View 1 2 3 4 1 chunk +6 lines, -0 lines 0 comments Download

Messages

Total messages: 32 (8 generated)
ulan
PTAL https://codereview.chromium.org/2712773002/diff/20001/third_party/WebKit/public/web/WebLocalFrame.h File third_party/WebKit/public/web/WebLocalFrame.h (right): https://codereview.chromium.org/2712773002/diff/20001/third_party/WebKit/public/web/WebLocalFrame.h#newcode509 third_party/WebKit/public/web/WebLocalFrame.h:509: virtual void* frameIdForTracing() const = 0; This is ...
3 years, 10 months ago (2017-02-22 21:16:37 UTC) #4
haraken
https://codereview.chromium.org/2712773002/diff/20001/third_party/WebKit/public/web/WebLocalFrame.h File third_party/WebKit/public/web/WebLocalFrame.h (right): https://codereview.chromium.org/2712773002/diff/20001/third_party/WebKit/public/web/WebLocalFrame.h#newcode509 third_party/WebKit/public/web/WebLocalFrame.h:509: virtual void* frameIdForTracing() const = 0; On 2017/02/22 21:16:37, ...
3 years, 10 months ago (2017-02-22 23:56:21 UTC) #6
dcheng
On 2017/02/22 23:56:21, haraken wrote: > https://codereview.chromium.org/2712773002/diff/20001/third_party/WebKit/public/web/WebLocalFrame.h > File third_party/WebKit/public/web/WebLocalFrame.h (right): > > https://codereview.chromium.org/2712773002/diff/20001/third_party/WebKit/public/web/WebLocalFrame.h#newcode509 > ...
3 years, 10 months ago (2017-02-23 03:03:45 UTC) #7
ulan
On 2017/02/23 03:03:45, dcheng wrote: > On 2017/02/22 23:56:21, haraken wrote: > > > https://codereview.chromium.org/2712773002/diff/20001/third_party/WebKit/public/web/WebLocalFrame.h ...
3 years, 10 months ago (2017-02-24 09:30:41 UTC) #8
dcheng
On 2017/02/24 09:30:41, ulan wrote: > On 2017/02/23 03:03:45, dcheng wrote: > > On 2017/02/22 ...
3 years, 10 months ago (2017-02-24 18:04:19 UTC) #9
ulan
On 2017/02/24 18:04:19, dcheng wrote: > On 2017/02/24 09:30:41, ulan wrote: > > On 2017/02/23 ...
3 years, 10 months ago (2017-02-24 18:13:53 UTC) #10
dcheng
On 2017/02/24 18:13:53, ulan wrote: > On 2017/02/24 18:04:19, dcheng wrote: > > On 2017/02/24 ...
3 years, 10 months ago (2017-02-24 18:28:27 UTC) #11
ulan
> I guess I'm confused--if we're printing out the frame ID in Blink, shouldn't we ...
3 years, 10 months ago (2017-02-24 18:46:51 UTC) #12
dcheng
On 2017/02/24 18:46:51, ulan wrote: > > I guess I'm confused--if we're printing out the ...
3 years, 10 months ago (2017-02-25 01:37:16 UTC) #13
ulan
> OK, so I think you should be hooking into Page::setMainFrame() instead. This > will ...
3 years, 9 months ago (2017-02-27 15:45:22 UTC) #14
dcheng
On 2017/02/27 15:45:22, ulan wrote: > > OK, so I think you should be hooking ...
3 years, 9 months ago (2017-02-28 06:28:07 UTC) #15
ulan
Thank you! PTAL at the latest patch set. This filters out SVG frames. I still ...
3 years, 9 months ago (2017-02-28 14:55:44 UTC) #17
dcheng
On 2017/02/28 14:55:44, ulan wrote: > Thank you! PTAL at the latest patch set. > ...
3 years, 9 months ago (2017-03-01 00:16:29 UTC) #18
dcheng
also, i'm curious how tracing by frame pointer will work with oilpan compaction, since pointer ...
3 years, 9 months ago (2017-03-01 01:16:45 UTC) #19
haraken
On 2017/03/01 01:16:45, dcheng wrote: > also, i'm curious how tracing by frame pointer will ...
3 years, 9 months ago (2017-03-01 01:20:19 UTC) #20
dcheng
On 2017/03/01 01:20:19, haraken wrote: > On 2017/03/01 01:16:45, dcheng wrote: > > also, i'm ...
3 years, 9 months ago (2017-03-01 01:30:41 UTC) #21
haraken
On 2017/03/01 01:30:41, dcheng wrote: > On 2017/03/01 01:20:19, haraken wrote: > > On 2017/03/01 ...
3 years, 9 months ago (2017-03-01 01:35:28 UTC) #22
ulan
> How hard is it to filter out plugin frames? It shouldn't be hard since ...
3 years, 9 months ago (2017-03-01 10:02:42 UTC) #23
dcheng
On 2017/03/01 10:02:42, ulan wrote: > > How hard is it to filter out plugin ...
3 years, 9 months ago (2017-03-01 21:45:25 UTC) #24
haraken
On 2017/03/01 21:45:25, dcheng wrote: > On 2017/03/01 10:02:42, ulan wrote: > > > How ...
3 years, 9 months ago (2017-03-02 01:01:59 UTC) #25
ulan
> OK, that thing looks like it's using the FrameLoader pointer for identity, > rather ...
3 years, 9 months ago (2017-03-06 10:23:42 UTC) #26
ulan
Thanks all, landing.
3 years, 9 months ago (2017-03-06 10:24:45 UTC) #27
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/2712773002/80001
3 years, 9 months ago (2017-03-06 10:25:09 UTC) #29
commit-bot: I haz the power
3 years, 9 months ago (2017-03-06 11:47:04 UTC) #32
Message was sent while issue was closed.
Committed patchset #5 (id:80001) as
https://chromium.googlesource.com/chromium/src/+/88feea0a921c2a57904b09c58f81...

Powered by Google App Engine
This is Rietveld 408576698