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

Issue 2474073005: DevTools: add the logging aspect into the PerformanceMonitor (Closed)

Created:
4 years, 1 month ago by pfeldman
Modified:
4 years, 1 month ago
Reviewers:
caseq, dgozman, panicker
CC:
chromium-reviews, caseq+blink_chromium.org, pfeldman+blink_chromium.org, sof, eae+blinkwatch, lushnikov+blink_chromium.org, blink-reviews-dom_chromium.org, dglazkov+blink, blink-reviews-bindings_chromium.org, devtools-reviews_chromium.org, blink-reviews, apavlov+blink_chromium.org, kinuko+watch, kozyatinskiy+blink_chromium.org, rwlbuis
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

DevTools: add the logging aspect into the PerformanceMonitor, plumb it over the remote debugging protocol, surface it in DevTools. Also adds proof of concept violation reporting for layout thrashing and long running tasks. BUG=662497 Committed: https://crrev.com/8bf066cc7d7529342fd260e5bf3d98a97c6b133f Cr-Commit-Position: refs/heads/master@{#430418}

Patch Set 1 #

Total comments: 17

Patch Set 2 : w/ violation as a source, not level. #

Patch Set 3 : rebaselined #

Patch Set 4 : muted violations in tests. #

Total comments: 4

Patch Set 5 : for landing #

Patch Set 6 : test fixed #

Unified diffs Side-by-side diffs Delta from patch set Stats (+323 lines, -113 lines) Patch
M content/browser/devtools/protocol/page_handler.h View 1 2 3 1 chunk +0 lines, -1 line 0 comments Download
M content/browser/devtools/protocol/page_handler.cc View 1 2 3 1 chunk +0 lines, -4 lines 0 comments Download
M third_party/WebKit/LayoutTests/inspector/input-event-warning.html View 1 2 3 2 chunks +3 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/bindings/core/v8/V8ScriptRunner.cpp View 2 chunks +2 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/dom/Document.cpp View 1 2 3 4 5 3 chunks +3 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/events/EventTarget.cpp View 1 2 3 4 4 chunks +9 lines, -12 lines 0 comments Download
M third_party/WebKit/Source/core/frame/FrameView.cpp View 1 2 3 4 5 3 chunks +4 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/frame/PerformanceMonitor.h View 1 2 3 5 chunks +35 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/frame/PerformanceMonitor.cpp View 1 2 3 6 chunks +169 lines, -27 lines 0 comments Download
M third_party/WebKit/Source/core/frame/Settings.in View 1 2 3 1 chunk +0 lines, -5 lines 0 comments Download
M third_party/WebKit/Source/core/inspector/ConsoleTypes.h View 1 1 chunk +2 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/inspector/InspectorLogAgent.h View 1 2 3 2 chunks +4 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/inspector/InspectorLogAgent.cpp View 1 2 3 4 6 chunks +21 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/inspector/InspectorPageAgent.h View 1 2 3 1 chunk +0 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/inspector/InspectorPageAgent.cpp View 1 2 3 3 chunks +0 lines, -14 lines 0 comments Download
M third_party/WebKit/Source/core/inspector/WorkerInspectorController.cpp View 1 chunk +2 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/inspector/browser_protocol.json View 1 2 3 3 chunks +8 lines, -8 lines 0 comments Download
M third_party/WebKit/Source/devtools/front_end/Tests.js View 1 2 3 4 5 3 chunks +13 lines, -5 lines 0 comments Download
M third_party/WebKit/Source/devtools/front_end/console/ConsoleView.js View 1 2 4 chunks +22 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/devtools/front_end/console/ConsoleViewMessage.js View 1 2 3 chunks +8 lines, -5 lines 0 comments Download
M third_party/WebKit/Source/devtools/front_end/console/consoleView.css View 1 2 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/devtools/front_end/console/module.json View 1 1 chunk +12 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/devtools/front_end/main/Main.js View 1 2 3 2 chunks +0 lines, -5 lines 0 comments Download
M third_party/WebKit/Source/devtools/front_end/main/module.json View 1 2 3 1 chunk +0 lines, -8 lines 0 comments Download
M third_party/WebKit/Source/devtools/front_end/sdk/ConsoleModel.js View 1 2 3 2 chunks +3 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/web/WebDevToolsAgentImpl.cpp View 1 chunk +2 lines, -1 line 0 comments Download

Messages

Total messages: 37 (15 generated)
pfeldman
4 years, 1 month ago (2016-11-04 19:43:14 UTC) #2
caseq
lgtm https://codereview.chromium.org/2474073005/diff/1/third_party/WebKit/Source/core/events/EventTarget.cpp File third_party/WebKit/Source/core/events/EventTarget.cpp (left): https://codereview.chromium.org/2474073005/diff/1/third_party/WebKit/Source/core/events/EventTarget.cpp#oldcode143 third_party/WebKit/Source/core/events/EventTarget.cpp:143: registeredListener->setBlockedEventWarningEmitted(); Bring this back, we really need it! ...
4 years, 1 month ago (2016-11-04 20:59:00 UTC) #3
panicker
https://codereview.chromium.org/2474073005/diff/1/third_party/WebKit/Source/bindings/core/v8/V8ScriptRunner.cpp File third_party/WebKit/Source/bindings/core/v8/V8ScriptRunner.cpp (right): https://codereview.chromium.org/2474073005/diff/1/third_party/WebKit/Source/bindings/core/v8/V8ScriptRunner.cpp#newcode527 third_party/WebKit/Source/bindings/core/v8/V8ScriptRunner.cpp:527: PerformanceMonitor::didExecuteScript(context); could you move this to separate CL and ...
4 years, 1 month ago (2016-11-04 20:59:28 UTC) #4
panicker
Also could you update the CL description to reflect that this is the ground work ...
4 years, 1 month ago (2016-11-04 21:04:58 UTC) #5
pfeldman
https://codereview.chromium.org/2474073005/diff/1/third_party/WebKit/Source/bindings/core/v8/V8ScriptRunner.cpp File third_party/WebKit/Source/bindings/core/v8/V8ScriptRunner.cpp (right): https://codereview.chromium.org/2474073005/diff/1/third_party/WebKit/Source/bindings/core/v8/V8ScriptRunner.cpp#newcode527 third_party/WebKit/Source/bindings/core/v8/V8ScriptRunner.cpp:527: PerformanceMonitor::didExecuteScript(context); How come are they broken? https://codereview.chromium.org/2474073005/diff/1/third_party/WebKit/Source/core/events/EventTarget.cpp File third_party/WebKit/Source/core/events/EventTarget.cpp ...
4 years, 1 month ago (2016-11-04 21:26:39 UTC) #6
pfeldman
On 2016/11/04 21:04:58, Shubhie wrote: > Also could you update the CL description to reflect ...
4 years, 1 month ago (2016-11-04 21:30:18 UTC) #7
panicker
LGTM (although I don't see the updated patchset yet)
4 years, 1 month ago (2016-11-04 21:39:19 UTC) #9
pfeldman
On 2016/11/04 21:39:19, Shubhie wrote: > LGTM > (although I don't see the updated patchset ...
4 years, 1 month ago (2016-11-04 22:11:36 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/2474073005/20001
4 years, 1 month ago (2016-11-04 22:17:08 UTC) #13
commit-bot: I haz the power
Try jobs failed on following builders: ios-device on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios-device/builds/100294) ios-simulator on master.tryserver.chromium.mac (JOB_FAILED, ...
4 years, 1 month ago (2016-11-04 22:21:14 UTC) #15
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/2474073005/40001
4 years, 1 month ago (2016-11-04 22:57:06 UTC) #18
pfeldman
I need to filter out these from the test results...
4 years, 1 month ago (2016-11-04 23:25:54 UTC) #20
caseq
lgtm https://codereview.chromium.org/2474073005/diff/60001/third_party/WebKit/Source/core/events/EventTarget.cpp File third_party/WebKit/Source/core/events/EventTarget.cpp (right): https://codereview.chromium.org/2474073005/diff/60001/third_party/WebKit/Source/core/events/EventTarget.cpp#newcode103 third_party/WebKit/Source/core/events/EventTarget.cpp:103: return PerformanceMonitor::enabled(context) ? 0.1 : 0; Extract constant ...
4 years, 1 month ago (2016-11-05 00:14:35 UTC) #21
pfeldman
https://codereview.chromium.org/2474073005/diff/60001/third_party/WebKit/Source/core/events/EventTarget.cpp File third_party/WebKit/Source/core/events/EventTarget.cpp (right): https://codereview.chromium.org/2474073005/diff/60001/third_party/WebKit/Source/core/events/EventTarget.cpp#newcode103 third_party/WebKit/Source/core/events/EventTarget.cpp:103: return PerformanceMonitor::enabled(context) ? 0.1 : 0; On 2016/11/05 00:14:35, ...
4 years, 1 month ago (2016-11-05 00:16:02 UTC) #22
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/2474073005/80001
4 years, 1 month ago (2016-11-05 00:16:43 UTC) #25
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_asan_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_asan_rel_ng/builds/257152)
4 years, 1 month ago (2016-11-05 02:20: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/2474073005/100001
4 years, 1 month ago (2016-11-07 21:38:58 UTC) #30
commit-bot: I haz the power
Committed patchset #6 (id:100001)
4 years, 1 month ago (2016-11-07 23:35:40 UTC) #32
commit-bot: I haz the power
Patchset 6 (id:??) landed as https://crrev.com/8bf066cc7d7529342fd260e5bf3d98a97c6b133f Cr-Commit-Position: refs/heads/master@{#430418}
4 years, 1 month ago (2016-11-07 23:43:41 UTC) #34
henrika (OOO until Aug 14)
A revert of this CL (patchset #6 id:100001) has been created in https://codereview.chromium.org/2490563002/ by henrika@chromium.org. ...
4 years, 1 month ago (2016-11-08 12:07:48 UTC) #35
henrika (OOO until Aug 14)
Looks like my revert failed. Perhaps I was to slow to revert. Investigating.
4 years, 1 month ago (2016-11-08 14:22:10 UTC) #36
stgao
4 years, 1 month ago (2016-11-10 23:16:11 UTC) #37
Message was sent while issue was closed.
On 2016/11/08 12:07:48, henrika wrote:
> A revert of this CL (patchset #6 id:100001) has been created in
> https://codereview.chromium.org/2490563002/ by mailto:henrika@chromium.org.
> 
> The reason for reverting is: Speculative revert as sheriff since we see a
> failure in WorkerDevToolsSanityTest.PauseInSharedWorkerInitialization on
Win10.
> 
> See link below for details:
> 
>
https://uberchromegw.corp.google.com/i/chromium.win/builders/Win10%20Tests%20....

The flake also shows up on Mac too. See the flakiness trend here.
https://findit-for-me.appspot.com/waterfall/check-flake?master_name=chromium....

Powered by Google App Engine
This is Rietveld 408576698