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

Issue 2296923004: Track frame context URL using first script heuristic (Closed)

Created:
4 years, 3 months ago by panicker
Modified:
4 years, 3 months ago
Reviewers:
caseq, dgozman, pfeldman, alph
CC:
chromium-reviews, caseq+blink_chromium.org, lushnikov+blink_chromium.org, pfeldman+blink_chromium.org, apavlov+blink_chromium.org, devtools-reviews_chromium.org, blink-reviews, kozyatinskiy+blink_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Track frame context URL using first script heuristic BUG=635596 Committed: https://crrev.com/7012b38dafd3fcaaeaee7b7413718b4b6d7493ca Cr-Commit-Position: refs/heads/master@{#418931}

Patch Set 1 #

Total comments: 4

Patch Set 2 : Switch to Location ptr instead of constructing location URL string #

Total comments: 6

Patch Set 3 : Address review comments #

Total comments: 6

Patch Set 4 : Address review comments #

Total comments: 3

Patch Set 5 : add detailed comment & missing header #

Total comments: 4

Patch Set 6 : switch to tracking unique frame context location URLs from all script runs #

Total comments: 6

Patch Set 7 : address review comments #

Patch Set 8 : rollforward with fix for unittest issue #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+146 lines, -0 lines) Patch
M third_party/WebKit/Source/core/BUILD.gn View 1 2 3 4 5 6 7 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/core/inspector/InspectorWebPerfAgent.h View 1 2 3 4 5 6 3 chunks +3 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/inspector/InspectorWebPerfAgent.cpp View 1 2 3 4 5 6 3 chunks +21 lines, -0 lines 0 comments Download
A third_party/WebKit/Source/core/inspector/InspectorWebPerfAgentTest.cpp View 1 2 3 4 5 6 7 1 chunk +121 lines, -0 lines 1 comment Download

Messages

Total messages: 41 (14 generated)
panicker
PTAL. This CL adds a heuristic to capture Frame Context URL attribution. For background & ...
4 years, 3 months ago (2016-08-31 02:00:37 UTC) #2
caseq
https://codereview.chromium.org/2296923004/diff/1/third_party/WebKit/Source/core/inspector/InspectorWebPerfAgent.h File third_party/WebKit/Source/core/inspector/InspectorWebPerfAgent.h (right): https://codereview.chromium.org/2296923004/diff/1/third_party/WebKit/Source/core/inspector/InspectorWebPerfAgent.h#newcode43 third_party/WebKit/Source/core/inspector/InspectorWebPerfAgent.h:43: std::string m_frameContextURL; you can't use std::string in core -- ...
4 years, 3 months ago (2016-08-31 04:59:15 UTC) #3
panicker
On 2016/08/31 04:59:15, caseq wrote: > https://codereview.chromium.org/2296923004/diff/1/third_party/WebKit/Source/core/inspector/InspectorWebPerfAgent.h > File third_party/WebKit/Source/core/inspector/InspectorWebPerfAgent.h (right): > > https://codereview.chromium.org/2296923004/diff/1/third_party/WebKit/Source/core/inspector/InspectorWebPerfAgent.h#newcode43 > ...
4 years, 3 months ago (2016-08-31 17:45:00 UTC) #4
alph
https://codereview.chromium.org/2296923004/diff/1/third_party/WebKit/Source/core/BUILD.gn File third_party/WebKit/Source/core/BUILD.gn (right): https://codereview.chromium.org/2296923004/diff/1/third_party/WebKit/Source/core/BUILD.gn#newcode1334 third_party/WebKit/Source/core/BUILD.gn:1334: "inspector/InspectorWebPerfAgent.cpp", InspectorWebPerfAgentTest.cpp
4 years, 3 months ago (2016-09-03 08:18:58 UTC) #5
panicker
PTAL. https://codereview.chromium.org/2296923004/diff/1/third_party/WebKit/Source/core/BUILD.gn File third_party/WebKit/Source/core/BUILD.gn (right): https://codereview.chromium.org/2296923004/diff/1/third_party/WebKit/Source/core/BUILD.gn#newcode1334 third_party/WebKit/Source/core/BUILD.gn:1334: "inspector/InspectorWebPerfAgent.cpp", On 2016/09/03 08:18:58, alph wrote: > InspectorWebPerfAgentTest.cpp ...
4 years, 3 months ago (2016-09-07 00:01:46 UTC) #6
alph
lgtm https://codereview.chromium.org/2296923004/diff/20001/third_party/WebKit/Source/core/inspector/InspectorWebPerfAgentTest.cpp File third_party/WebKit/Source/core/inspector/InspectorWebPerfAgentTest.cpp (right): https://codereview.chromium.org/2296923004/diff/20001/third_party/WebKit/Source/core/inspector/InspectorWebPerfAgentTest.cpp#newcode39 third_party/WebKit/Source/core/inspector/InspectorWebPerfAgentTest.cpp:39: if (m_agent->m_frameContextLocation) { nit: early return if (!...) ...
4 years, 3 months ago (2016-09-07 00:18:20 UTC) #7
caseq
https://codereview.chromium.org/2296923004/diff/20001/third_party/WebKit/Source/core/inspector/InspectorWebPerfAgentTest.cpp File third_party/WebKit/Source/core/inspector/InspectorWebPerfAgentTest.cpp (right): https://codereview.chromium.org/2296923004/diff/20001/third_party/WebKit/Source/core/inspector/InspectorWebPerfAgentTest.cpp#newcode37 third_party/WebKit/Source/core/inspector/InspectorWebPerfAgentTest.cpp:37: std::string InspectorWebPerfAgentTest::frameContextURL() can we get rid of std::string here ...
4 years, 3 months ago (2016-09-07 00:20:24 UTC) #8
panicker
https://codereview.chromium.org/2296923004/diff/20001/third_party/WebKit/Source/core/inspector/InspectorWebPerfAgentTest.cpp File third_party/WebKit/Source/core/inspector/InspectorWebPerfAgentTest.cpp (right): https://codereview.chromium.org/2296923004/diff/20001/third_party/WebKit/Source/core/inspector/InspectorWebPerfAgentTest.cpp#newcode37 third_party/WebKit/Source/core/inspector/InspectorWebPerfAgentTest.cpp:37: std::string InspectorWebPerfAgentTest::frameContextURL() On 2016/09/07 00:20:24, caseq wrote: > can ...
4 years, 3 months ago (2016-09-07 00:28:40 UTC) #9
panicker
+Pavel for BUILD.gn OWNERS
4 years, 3 months ago (2016-09-07 00:36:28 UTC) #11
caseq
lgtm % comments https://codereview.chromium.org/2296923004/diff/40001/third_party/WebKit/Source/core/inspector/InspectorWebPerfAgent.cpp File third_party/WebKit/Source/core/inspector/InspectorWebPerfAgent.cpp (right): https://codereview.chromium.org/2296923004/diff/40001/third_party/WebKit/Source/core/inspector/InspectorWebPerfAgent.cpp#newcode7 third_party/WebKit/Source/core/inspector/InspectorWebPerfAgent.cpp:7: #include "core/InstrumentingAgents.h" do you need this? ...
4 years, 3 months ago (2016-09-07 00:49:50 UTC) #12
panicker
https://codereview.chromium.org/2296923004/diff/40001/third_party/WebKit/Source/core/inspector/InspectorWebPerfAgent.cpp File third_party/WebKit/Source/core/inspector/InspectorWebPerfAgent.cpp (right): https://codereview.chromium.org/2296923004/diff/40001/third_party/WebKit/Source/core/inspector/InspectorWebPerfAgent.cpp#newcode7 third_party/WebKit/Source/core/inspector/InspectorWebPerfAgent.cpp:7: #include "core/InstrumentingAgents.h" On 2016/09/07 00:49:50, caseq wrote: > do ...
4 years, 3 months ago (2016-09-07 16:08:09 UTC) #13
pfeldman
+dgozman for microtasks and entered contexts. https://codereview.chromium.org/2296923004/diff/60001/third_party/WebKit/Source/core/inspector/InspectorWebPerfAgent.cpp File third_party/WebKit/Source/core/inspector/InspectorWebPerfAgent.cpp (right): https://codereview.chromium.org/2296923004/diff/60001/third_party/WebKit/Source/core/inspector/InspectorWebPerfAgent.cpp#newcode33 third_party/WebKit/Source/core/inspector/InspectorWebPerfAgent.cpp:33: m_frameContextLocation = context->isDocument() ...
4 years, 3 months ago (2016-09-07 16:30:19 UTC) #17
panicker
https://codereview.chromium.org/2296923004/diff/60001/third_party/WebKit/Source/core/inspector/InspectorWebPerfAgent.cpp File third_party/WebKit/Source/core/inspector/InspectorWebPerfAgent.cpp (right): https://codereview.chromium.org/2296923004/diff/60001/third_party/WebKit/Source/core/inspector/InspectorWebPerfAgent.cpp#newcode33 third_party/WebKit/Source/core/inspector/InspectorWebPerfAgent.cpp:33: m_frameContextLocation = context->isDocument() ? toDocument(context)->location() : nullptr; On 2016/09/07 ...
4 years, 3 months ago (2016-09-07 16:52:03 UTC) #18
dgozman
Microtasks from different pages running in the same context should not mix, since they are ...
4 years, 3 months ago (2016-09-07 17:12:11 UTC) #19
panicker
PTAL. Updated per our discussion on Friday. Any other concerns here? https://codereview.chromium.org/2296923004/diff/60001/third_party/WebKit/Source/core/inspector/InspectorWebPerfAgent.cpp File third_party/WebKit/Source/core/inspector/InspectorWebPerfAgent.cpp (right): ...
4 years, 3 months ago (2016-09-12 18:36:20 UTC) #22
dgozman
https://codereview.chromium.org/2296923004/diff/80001/third_party/WebKit/Source/core/inspector/InspectorWebPerfAgent.cpp File third_party/WebKit/Source/core/inspector/InspectorWebPerfAgent.cpp (right): https://codereview.chromium.org/2296923004/diff/80001/third_party/WebKit/Source/core/inspector/InspectorWebPerfAgent.cpp#newcode36 third_party/WebKit/Source/core/inspector/InspectorWebPerfAgent.cpp:36: // See http://go/longtasks-v2 We don't usually commit internal Google ...
4 years, 3 months ago (2016-09-12 18:41:39 UTC) #23
panicker
PTAL https://codereview.chromium.org/2296923004/diff/80001/third_party/WebKit/Source/core/inspector/InspectorWebPerfAgent.cpp File third_party/WebKit/Source/core/inspector/InspectorWebPerfAgent.cpp (right): https://codereview.chromium.org/2296923004/diff/80001/third_party/WebKit/Source/core/inspector/InspectorWebPerfAgent.cpp#newcode36 third_party/WebKit/Source/core/inspector/InspectorWebPerfAgent.cpp:36: // See http://go/longtasks-v2 On 2016/09/12 18:41:39, dgozman wrote: ...
4 years, 3 months ago (2016-09-12 20:57:12 UTC) #24
dgozman
lgtm https://codereview.chromium.org/2296923004/diff/100001/third_party/WebKit/Source/core/inspector/InspectorWebPerfAgent.cpp File third_party/WebKit/Source/core/inspector/InspectorWebPerfAgent.cpp (right): https://codereview.chromium.org/2296923004/diff/100001/third_party/WebKit/Source/core/inspector/InspectorWebPerfAgent.cpp#newcode48 third_party/WebKit/Source/core/inspector/InspectorWebPerfAgent.cpp:48: // Reset m_frameContextURL. We don't reset this in ...
4 years, 3 months ago (2016-09-12 21:12:04 UTC) #25
panicker
PTAL. (Sorry for the delay - was bit swamped with Perf. Phew, glad it's over ...
4 years, 3 months ago (2016-09-15 00:02:10 UTC) #26
panicker
Friendly ping owners approval.
4 years, 3 months ago (2016-09-15 16:18:42 UTC) #27
panicker
Whoops, looks like I have the approvals. Pavel, any other comments? otherwise I will submit ...
4 years, 3 months ago (2016-09-15 16:25:50 UTC) #28
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/2296923004/120001
4 years, 3 months ago (2016-09-15 18:28:16 UTC) #35
commit-bot: I haz the power
Committed patchset #7 (id:120001)
4 years, 3 months ago (2016-09-15 19:11:41 UTC) #36
commit-bot: I haz the power
Patchset 7 (id:??) landed as https://crrev.com/7012b38dafd3fcaaeaee7b7413718b4b6d7493ca Cr-Commit-Position: refs/heads/master@{#418931}
4 years, 3 months ago (2016-09-15 19:14:47 UTC) #38
msw
A revert of this CL (patchset #7 id:120001) has been created in https://codereview.chromium.org/2345023002/ by msw@chromium.org. ...
4 years, 3 months ago (2016-09-15 19:43:48 UTC) #39
findit-for-me
FYI: Findit identified this CL at revision 418931 as the culprit for failures in the ...
4 years, 3 months ago (2016-09-15 20:02:27 UTC) #40
panicker
4 years, 3 months ago (2016-09-16 01:20:05 UTC) #41
Message was sent while issue was closed.
https://codereview.chromium.org/2296923004/diff/140001/third_party/WebKit/Sou...
File third_party/WebKit/Source/core/inspector/InspectorWebPerfAgentTest.cpp
(right):

https://codereview.chromium.org/2296923004/diff/140001/third_party/WebKit/Sou...
third_party/WebKit/Source/core/inspector/InspectorWebPerfAgentTest.cpp:48:
Location* location = (*m_agent->m_frameContextLocations.begin()).get();
This is the only line that changed in the fix with rollforward

Powered by Google App Engine
This is Rietveld 408576698