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

Issue 1967933002: [DevTools] Dispatch messages to V8InspectorSession directly. (Closed)

Created:
4 years, 7 months ago by dgozman
Modified:
4 years, 7 months ago
Reviewers:
caseq, sof, pfeldman
CC:
chromium-reviews, mlamouri+watch-content_chromium.org, caseq+blink_chromium.org, pfeldman+blink_chromium.org, jam, lushnikov+blink_chromium.org, blink-reviews-api_chromium.org, blink-reviews, dglazkov+blink, darin-cc_chromium.org, devtools-reviews_chromium.org, mkwst+moarreviews-renderer_chromium.org, apavlov+blink_chromium.org, sergeyv+blink_chromium.org, kinuko+watch, pfeldman, kozyatinskiy+blink_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@1936593002
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[DevTools] Dispatch messages to V8InspectorSession directly. This patch adds dispatcher, backend and frontend channel to V8InspectorSessionImpl and removes agent public interfaces and their blink wrappers. Drive-by: removed sessionId from inspector_protocol since InspectorSession now handles it. Next step would be to separate v8 instrumentation from InspectorSession, remove latter from worker (depends on console efforts) and merge session into WebDevToolsAgentImpl. BUG=580337 Committed: https://crrev.com/4698dd61590b2cba8346c5efd83428b9a3c3e970 Cr-Commit-Position: refs/heads/master@{#395269}

Patch Set 1 #

Total comments: 2

Patch Set 2 : rebased, fixed restore #

Patch Set 3 : rebased #

Patch Set 4 : typo #

Patch Set 5 : rebased, fixed thread issue in WorkerThread #

Patch Set 6 : rebased #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+340 lines, -1466 lines) Patch
M content/renderer/devtools/devtools_agent_filter.cc View 3 chunks +9 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/core/core.gypi View 1 2 3 4 5 2 chunks +0 lines, -8 lines 0 comments Download
M third_party/WebKit/Source/core/inspector/CodeGeneratorInstrumentation.py View 1 chunk +2 lines, -1 line 3 comments Download
D third_party/WebKit/Source/core/inspector/InspectorDebuggerAgent.h View 1 chunk +0 lines, -92 lines 0 comments Download
D third_party/WebKit/Source/core/inspector/InspectorDebuggerAgent.cpp View 1 chunk +0 lines, -271 lines 0 comments Download
D third_party/WebKit/Source/core/inspector/InspectorHeapProfilerAgent.h View 1 chunk +0 lines, -74 lines 0 comments Download
D third_party/WebKit/Source/core/inspector/InspectorHeapProfilerAgent.cpp View 1 chunk +0 lines, -123 lines 0 comments Download
M third_party/WebKit/Source/core/inspector/InspectorInstrumentation.cpp View 1 2 3 4 1 chunk +0 lines, -2 lines 0 comments Download
D third_party/WebKit/Source/core/inspector/InspectorProfilerAgent.h View 1 chunk +0 lines, -71 lines 0 comments Download
D third_party/WebKit/Source/core/inspector/InspectorProfilerAgent.cpp View 1 chunk +0 lines, -97 lines 0 comments Download
D third_party/WebKit/Source/core/inspector/InspectorRuntimeAgent.h View 1 chunk +0 lines, -84 lines 0 comments Download
D third_party/WebKit/Source/core/inspector/InspectorRuntimeAgent.cpp View 1 chunk +0 lines, -168 lines 0 comments Download
M third_party/WebKit/Source/core/inspector/InspectorSession.h View 1 2 3 4 4 chunks +13 lines, -14 lines 0 comments Download
M third_party/WebKit/Source/core/inspector/InspectorSession.cpp View 1 2 3 4 5 chunks +68 lines, -72 lines 0 comments Download
M third_party/WebKit/Source/core/inspector/WorkerInspectorController.h View 3 chunks +0 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/core/inspector/WorkerInspectorController.cpp View 1 3 chunks +10 lines, -20 lines 0 comments Download
M third_party/WebKit/Source/core/workers/WorkerThread.cpp View 1 2 3 4 2 chunks +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/platform/blink_platform.gypi View 1 2 3 4 5 1 chunk +0 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/platform/inspector_protocol/Dispatcher_cpp.template View 1 2 3 4 5 13 chunks +31 lines, -32 lines 0 comments Download
M third_party/WebKit/Source/platform/inspector_protocol/Dispatcher_h.template View 3 chunks +5 lines, -6 lines 0 comments Download
M third_party/WebKit/Source/platform/inspector_protocol/FrontendChannel.h View 1 chunk +3 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/platform/inspector_protocol/Frontend_cpp.template View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/platform/inspector_protocol/Frontend_h.template View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/platform/v8_inspector/V8Console.cpp View 1 2 3 4 5 3 chunks +5 lines, -5 lines 0 comments Download
M third_party/WebKit/Source/platform/v8_inspector/V8DebuggerAgentImpl.h View 3 chunks +5 lines, -10 lines 0 comments Download
M third_party/WebKit/Source/platform/v8_inspector/V8DebuggerAgentImpl.cpp View 1 2 3 4 5 2 chunks +3 lines, -16 lines 0 comments Download
M third_party/WebKit/Source/platform/v8_inspector/V8DebuggerImpl.h View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/platform/v8_inspector/V8DebuggerImpl.cpp View 1 2 3 4 5 4 chunks +6 lines, -6 lines 0 comments Download
M third_party/WebKit/Source/platform/v8_inspector/V8HeapProfilerAgentImpl.h View 1 2 3 4 2 chunks +6 lines, -8 lines 0 comments Download
M third_party/WebKit/Source/platform/v8_inspector/V8HeapProfilerAgentImpl.cpp View 1 2 3 4 5 2 chunks +3 lines, -9 lines 0 comments Download
M third_party/WebKit/Source/platform/v8_inspector/V8InspectorSessionImpl.h View 5 chunks +16 lines, -11 lines 0 comments Download
M third_party/WebKit/Source/platform/v8_inspector/V8InspectorSessionImpl.cpp View 1 2 3 4 5 4 chunks +87 lines, -31 lines 0 comments Download
M third_party/WebKit/Source/platform/v8_inspector/V8ProfilerAgentImpl.h View 2 chunks +4 lines, -8 lines 0 comments Download
M third_party/WebKit/Source/platform/v8_inspector/V8ProfilerAgentImpl.cpp View 1 2 3 4 5 2 chunks +3 lines, -11 lines 0 comments Download
M third_party/WebKit/Source/platform/v8_inspector/V8RuntimeAgentImpl.h View 2 chunks +7 lines, -9 lines 0 comments Download
M third_party/WebKit/Source/platform/v8_inspector/V8RuntimeAgentImpl.cpp View 1 2 3 4 5 2 chunks +3 lines, -21 lines 0 comments Download
M third_party/WebKit/Source/platform/v8_inspector/public/V8Debugger.h View 1 2 3 4 3 chunks +2 lines, -10 lines 0 comments Download
D third_party/WebKit/Source/platform/v8_inspector/public/V8DebuggerAgent.h View 1 chunk +0 lines, -24 lines 0 comments Download
D third_party/WebKit/Source/platform/v8_inspector/public/V8HeapProfilerAgent.h View 1 chunk +0 lines, -23 lines 0 comments Download
M third_party/WebKit/Source/platform/v8_inspector/public/V8InspectorSession.h View 3 chunks +5 lines, -6 lines 0 comments Download
M third_party/WebKit/Source/platform/v8_inspector/public/V8InspectorSessionClient.h View 1 2 3 4 1 chunk +5 lines, -2 lines 0 comments Download
D third_party/WebKit/Source/platform/v8_inspector/public/V8ProfilerAgent.h View 1 chunk +0 lines, -22 lines 0 comments Download
D third_party/WebKit/Source/platform/v8_inspector/public/V8RuntimeAgent.h View 1 chunk +0 lines, -23 lines 0 comments Download
M third_party/WebKit/Source/web/InspectorOverlay.h View 1 4 chunks +3 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/web/InspectorOverlay.cpp View 1 2 3 4 5 chunks +8 lines, -13 lines 0 comments Download
M third_party/WebKit/Source/web/WebDevToolsAgentImpl.h View 5 chunks +3 lines, -6 lines 0 comments Download
M third_party/WebKit/Source/web/WebDevToolsAgentImpl.cpp View 1 2 3 4 5 13 chunks +20 lines, -36 lines 0 comments Download
M third_party/WebKit/public/web/WebDevToolsAgent.h View 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 46 (23 generated)
dgozman
Could you please take a look? https://codereview.chromium.org/1967933002/diff/1/third_party/WebKit/Source/core/inspector/InspectorRuntimeAgent.cpp File third_party/WebKit/Source/core/inspector/InspectorRuntimeAgent.cpp (left): https://codereview.chromium.org/1967933002/diff/1/third_party/WebKit/Source/core/inspector/InspectorRuntimeAgent.cpp#oldcode85 third_party/WebKit/Source/core/inspector/InspectorRuntimeAgent.cpp:85: TRACE_EVENT_INSTANT1(TRACE_DISABLED_BY_DEFAULT("devtools.timeline"), "UpdateCounters", TRACE_EVENT_SCOPE_THREAD, ...
4 years, 7 months ago (2016-05-11 00:46:56 UTC) #3
caseq
lgtm https://codereview.chromium.org/1967933002/diff/1/third_party/WebKit/Source/core/inspector/InspectorSession.cpp File third_party/WebKit/Source/core/inspector/InspectorSession.cpp (right): https://codereview.chromium.org/1967933002/diff/1/third_party/WebKit/Source/core/inspector/InspectorSession.cpp#newcode31 third_party/WebKit/Source/core/inspector/InspectorSession.cpp:31: , m_shouldRestore(savedState) !!savedState?
4 years, 7 months ago (2016-05-11 01:40:34 UTC) #4
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1967933002/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1967933002/1
4 years, 7 months ago (2016-05-11 02:29:00 UTC) #6
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: ios-simulator on tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios-simulator/builds/3544) ios-simulator-gn on ...
4 years, 7 months ago (2016-05-11 02:42:25 UTC) #8
dgozman
Pavel, I need an owner stamp for platform/ and and public/. Take a look please.
4 years, 7 months ago (2016-05-12 01:28:45 UTC) #10
pfeldman
lgtm
4 years, 7 months ago (2016-05-12 01:31:58 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1967933002/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1967933002/40001
4 years, 7 months ago (2016-05-12 22:20:31 UTC) #14
commit-bot: I haz the power
Try jobs failed on following builders: cast_shell_linux on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/cast_shell_linux/builds/159642)
4 years, 7 months ago (2016-05-12 22:42:45 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1967933002/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1967933002/60001
4 years, 7 months ago (2016-05-13 02:07:46 UTC) #19
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_compile_dbg_ng on tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_compile_dbg_ng/builds/189583)
4 years, 7 months ago (2016-05-13 03:18:52 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1967933002/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1967933002/80001
4 years, 7 months ago (2016-05-20 21:46:28 UTC) #24
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_rel_ng on tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_rel_ng/builds/226111)
4 years, 7 months ago (2016-05-21 01:02:36 UTC) #26
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1967933002/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1967933002/80001
4 years, 7 months ago (2016-05-21 01:05:54 UTC) #28
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_rel_ng on tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_rel_ng/builds/226142)
4 years, 7 months ago (2016-05-21 04:17:31 UTC) #30
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1967933002/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1967933002/80001
4 years, 7 months ago (2016-05-21 04:42:36 UTC) #32
commit-bot: I haz the power
Failed to apply patch for third_party/WebKit/Source/platform/v8_inspector/V8DebuggerAgentImpl.cpp: While running git apply --index -3 -p1; error: patch ...
4 years, 7 months ago (2016-05-21 06:06:57 UTC) #34
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1967933002/100001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1967933002/100001
4 years, 7 months ago (2016-05-21 23:29:23 UTC) #37
commit-bot: I haz the power
Committed patchset #6 (id:100001)
4 years, 7 months ago (2016-05-22 01:53:05 UTC) #39
commit-bot: I haz the power
Patchset 6 (id:??) landed as https://crrev.com/4698dd61590b2cba8346c5efd83428b9a3c3e970 Cr-Commit-Position: refs/heads/master@{#395269}
4 years, 7 months ago (2016-05-22 01:54:50 UTC) #41
sof
https://codereview.chromium.org/1967933002/diff/100001/third_party/WebKit/Source/core/inspector/CodeGeneratorInstrumentation.py File third_party/WebKit/Source/core/inspector/CodeGeneratorInstrumentation.py (right): https://codereview.chromium.org/1967933002/diff/100001/third_party/WebKit/Source/core/inspector/CodeGeneratorInstrumentation.py#newcode100 third_party/WebKit/Source/core/inspector/CodeGeneratorInstrumentation.py:100: class CORE_EXPORT InstrumentingAgents : public GarbageCollectedFinalized<InstrumentingAgents> { Why this ...
4 years, 7 months ago (2016-05-23 06:20:53 UTC) #43
dgozman
https://codereview.chromium.org/1967933002/diff/100001/third_party/WebKit/Source/core/inspector/CodeGeneratorInstrumentation.py File third_party/WebKit/Source/core/inspector/CodeGeneratorInstrumentation.py (right): https://codereview.chromium.org/1967933002/diff/100001/third_party/WebKit/Source/core/inspector/CodeGeneratorInstrumentation.py#newcode100 third_party/WebKit/Source/core/inspector/CodeGeneratorInstrumentation.py:100: class CORE_EXPORT InstrumentingAgents : public GarbageCollectedFinalized<InstrumentingAgents> { On 2016/05/23 ...
4 years, 7 months ago (2016-05-23 15:47:02 UTC) #44
sof
https://codereview.chromium.org/1967933002/diff/100001/third_party/WebKit/Source/core/inspector/CodeGeneratorInstrumentation.py File third_party/WebKit/Source/core/inspector/CodeGeneratorInstrumentation.py (right): https://codereview.chromium.org/1967933002/diff/100001/third_party/WebKit/Source/core/inspector/CodeGeneratorInstrumentation.py#newcode100 third_party/WebKit/Source/core/inspector/CodeGeneratorInstrumentation.py:100: class CORE_EXPORT InstrumentingAgents : public GarbageCollectedFinalized<InstrumentingAgents> { On 2016/05/23 ...
4 years, 7 months ago (2016-05-23 18:00:30 UTC) #45
dgozman
4 years, 7 months ago (2016-05-23 18:04:33 UTC) #46
Message was sent while issue was closed.
On 2016/05/23 18:00:30, sof wrote:
>
https://codereview.chromium.org/1967933002/diff/100001/third_party/WebKit/Sou...
> File third_party/WebKit/Source/core/inspector/CodeGeneratorInstrumentation.py
> (right):
> 
>
https://codereview.chromium.org/1967933002/diff/100001/third_party/WebKit/Sou...
> third_party/WebKit/Source/core/inspector/CodeGeneratorInstrumentation.py:100:
> class CORE_EXPORT InstrumentingAgents : public
> GarbageCollectedFinalized<InstrumentingAgents> {
> On 2016/05/23 15:47:02, dgozman wrote:
> > On 2016/05/23 06:20:53, sof wrote:
> > > Why this change? This object doesn't need to run any finalizer (and if it
> did,
> > > the clang plugin would issue an error.)
> > 
> > I was fixing a crash, and thought that maybe we don't destruct HeapHashMap
> > inside this object. That seemed to help at first, but not really.
> > 
> > I can revert this back in a follow-up.
> 
> Thanks for explaining; the HeapHashMap backing store table will independently
> finalize its elements, if needed.
> 
> The reason I fuss over this :) is that we're considering enabling a plugin
> warning by default (warn-unneeded-finalizer) which checks for unnecessary uses
> of *Finalized<>, so keeping the codebase warning-free until then makes some
> sense. I don't think such a warning will be getting in anyone's way very much,
> but that's the trade-off to make.
> 
> https://codereview.chromium.org/2003033002/ switches to GarbageCollected<>.

Good to know. Thanks for the patch!

Powered by Google App Engine
This is Rietveld 408576698