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

Issue 1621923002: [DevTools] Remove InspectorState. (Closed)

Created:
4 years, 11 months ago by dgozman
Modified:
4 years, 11 months ago
Reviewers:
pfeldman
CC:
chromium-reviews, shans, tzik, mlamouri+watch-screen-orientation_chromium.org, apavlov+blink_chromium.org, dmazzoni+watch_chromium.org, timvolodine, caseq+blink_chromium.org, aboxhall, mvanouwerkerk+watch_chromium.org, aboxhall+watch_chromium.org, nhiroki, je_julie, devtools-reviews_chromium.org, blink-reviews, Eric Willigers, rjwright, cmumford, lushnikov+blink_chromium.org, dmazzoni, yuzo+watch_chromium.org, darktears, jsbell+idb_chromium.org, plundblad+watch_chromium.org, mlamouri+watch-blink_chromium.org, blink-reviews-animation_chromium.org, nektar+watch_chromium.org, pfeldman+blink_chromium.org, nektarios, dtseng+watch_chromium.org, sergeyv+blink_chromium.org, kinuko+fileapi, kozyatinskiy+blink_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[DevTools] Remove InspectorState. Instead of serializing state on every change, we serialize it before sending the message response, thus removing need for callback. This may affect performance in positive or negative way, but it's not a hot path. BUG=580337 Committed: https://crrev.com/bc1a5c04a5cc60467d1d57179f8b01d902e46854 Cr-Commit-Position: refs/heads/master@{#371433}

Patch Set 1 #

Patch Set 2 : beautify #

Patch Set 3 : better mute #

Total comments: 1

Patch Set 4 : to JSONObject #

Total comments: 8

Patch Set 5 : review comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+254 lines, -557 lines) Patch
M third_party/WebKit/Source/core/core.gypi View 1 2 3 1 chunk +0 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/core/inspector/InspectorAnimationAgent.cpp View 1 2 3 4 5 chunks +7 lines, -6 lines 0 comments Download
M third_party/WebKit/Source/core/inspector/InspectorApplicationCacheAgent.cpp View 1 2 3 4 2 chunks +1 line, -2 lines 0 comments Download
M third_party/WebKit/Source/core/inspector/InspectorBaseAgent.h View 1 2 3 4 chunks +8 lines, -7 lines 0 comments Download
M third_party/WebKit/Source/core/inspector/InspectorBaseAgent.cpp View 1 2 3 3 chunks +35 lines, -7 lines 0 comments Download
M third_party/WebKit/Source/core/inspector/InspectorCSSAgent.cpp View 1 2 3 4 3 chunks +2 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/core/inspector/InspectorConsoleAgent.cpp View 1 2 3 4 2 chunks +1 line, -2 lines 0 comments Download
M third_party/WebKit/Source/core/inspector/InspectorDOMAgent.cpp View 1 2 3 4 2 chunks +1 line, -2 lines 0 comments Download
M third_party/WebKit/Source/core/inspector/InspectorDOMDebuggerAgent.h View 1 2 3 1 chunk +3 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/inspector/InspectorDOMDebuggerAgent.cpp View 1 2 3 4 10 chunks +39 lines, -31 lines 0 comments Download
M third_party/WebKit/Source/core/inspector/InspectorDebuggerAgent.h View 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/core/inspector/InspectorDebuggerAgent.cpp View 1 2 3 4 3 chunks +7 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/core/inspector/InspectorHeapProfilerAgent.cpp View 1 2 3 4 2 chunks +3 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/core/inspector/InspectorInspectorAgent.cpp View 1 2 3 4 4 chunks +3 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/core/inspector/InspectorLayerTreeAgent.cpp View 1 chunk +0 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/inspector/InspectorPageAgent.cpp View 1 2 3 4 4 chunks +2 lines, -6 lines 0 comments Download
M third_party/WebKit/Source/core/inspector/InspectorProfilerAgent.h View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/inspector/InspectorProfilerAgent.cpp View 1 2 3 4 3 chunks +3 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/core/inspector/InspectorResourceAgent.cpp View 1 2 3 4 12 chunks +18 lines, -14 lines 0 comments Download
M third_party/WebKit/Source/core/inspector/InspectorRuntimeAgent.h View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/inspector/InspectorRuntimeAgent.cpp View 1 2 3 4 3 chunks +3 lines, -3 lines 0 comments Download
D third_party/WebKit/Source/core/inspector/InspectorState.h View 1 chunk +0 lines, -122 lines 0 comments Download
D third_party/WebKit/Source/core/inspector/InspectorState.cpp View 1 chunk +0 lines, -170 lines 0 comments Download
D third_party/WebKit/Source/core/inspector/InspectorStateClient.h View 1 chunk +0 lines, -45 lines 0 comments Download
M third_party/WebKit/Source/core/inspector/InspectorTracingAgent.cpp View 1 2 3 3 chunks +4 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/core/inspector/InspectorWorkerAgent.cpp View 1 2 3 4 4 chunks +4 lines, -5 lines 0 comments Download
M third_party/WebKit/Source/core/inspector/WorkerInspectorController.h View 1 2 3 2 chunks +0 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/core/inspector/WorkerInspectorController.cpp View 1 2 3 6 chunks +2 lines, -22 lines 0 comments Download
M third_party/WebKit/Source/core/inspector/v8/V8DebuggerAgent.h View 1 2 3 2 chunks +1 line, -2 lines 0 comments Download
M third_party/WebKit/Source/core/inspector/v8/V8DebuggerAgentImpl.h View 1 2 3 2 chunks +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/inspector/v8/V8DebuggerAgentImpl.cpp View 1 2 3 4 9 chunks +30 lines, -14 lines 0 comments Download
M third_party/WebKit/Source/core/inspector/v8/V8ProfilerAgent.h View 2 chunks +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/inspector/v8/V8ProfilerAgentImpl.h View 2 chunks +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/inspector/v8/V8ProfilerAgentImpl.cpp View 1 2 3 4 3 chunks +5 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/core/inspector/v8/V8RuntimeAgent.h View 2 chunks +2 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/inspector/v8/V8RuntimeAgentImpl.h View 2 chunks +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/inspector/v8/V8RuntimeAgentImpl.cpp View 1 2 3 4 3 chunks +2 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/modules/accessibility/InspectorAccessibilityAgent.cpp View 1 chunk +0 lines, -1 line 0 comments Download
M third_party/WebKit/Source/modules/device_orientation/DeviceOrientationInspectorAgent.cpp View 1 2 3 4 3 chunks +10 lines, -8 lines 0 comments Download
M third_party/WebKit/Source/modules/filesystem/InspectorFileSystemAgent.cpp View 1 2 3 4 2 chunks +1 line, -2 lines 0 comments Download
M third_party/WebKit/Source/modules/indexeddb/InspectorIndexedDBAgent.cpp View 1 2 3 4 2 chunks +1 line, -2 lines 0 comments Download
M third_party/WebKit/Source/modules/screen_orientation/ScreenOrientationInspectorAgent.cpp View 1 2 3 4 3 chunks +8 lines, -6 lines 0 comments Download
M third_party/WebKit/Source/modules/storage/InspectorDOMStorageAgent.cpp View 1 2 3 4 2 chunks +1 line, -2 lines 0 comments Download
M third_party/WebKit/Source/modules/webdatabase/InspectorDatabaseAgent.cpp View 1 2 3 4 2 chunks +1 line, -2 lines 0 comments Download
M third_party/WebKit/Source/platform/JSONValues.h View 1 2 3 4 2 chunks +4 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/platform/JSONValues.cpp View 1 2 3 4 1 chunk +7 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/web/InspectorEmulationAgent.cpp View 1 2 3 4 2 chunks +5 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/web/InspectorRenderingAgent.cpp View 1 2 3 4 2 chunks +4 lines, -5 lines 0 comments Download
M third_party/WebKit/Source/web/WebDevToolsAgentImpl.h View 5 chunks +1 line, -6 lines 0 comments Download
M third_party/WebKit/Source/web/WebDevToolsAgentImpl.cpp View 1 2 8 chunks +14 lines, -14 lines 0 comments Download

Messages

Total messages: 12 (3 generated)
dgozman
Take a look please.
4 years, 11 months ago (2016-01-23 02:26:45 UTC) #2
pfeldman
I am not sure I like the extended syntax. Should we introduce bool asBoolean(name, defaultValue) ...
4 years, 11 months ago (2016-01-25 18:22:54 UTC) #3
dgozman
PTAL
4 years, 11 months ago (2016-01-25 19:25:42 UTC) #4
pfeldman
https://codereview.chromium.org/1621923002/diff/60001/third_party/WebKit/Source/core/inspector/v8/V8DebuggerAgentImpl.cpp File third_party/WebKit/Source/core/inspector/v8/V8DebuggerAgentImpl.cpp (right): https://codereview.chromium.org/1621923002/diff/60001/third_party/WebKit/Source/core/inspector/v8/V8DebuggerAgentImpl.cpp#newcode224 third_party/WebKit/Source/core/inspector/v8/V8DebuggerAgentImpl.cpp:224: m_state->setNumber(DebuggerAgentState::pauseOnExceptionsState, (long)V8DebuggerImpl::DontPauseOnExceptions); static_cast https://codereview.chromium.org/1621923002/diff/60001/third_party/WebKit/Source/core/inspector/v8/V8DebuggerAgentImpl.cpp#newcode227 third_party/WebKit/Source/core/inspector/v8/V8DebuggerAgentImpl.cpp:227: m_state->setNumber(DebuggerAgentState::asyncCallStackDepth, (long)0); static_cast https://codereview.chromium.org/1621923002/diff/60001/third_party/WebKit/Source/core/inspector/v8/V8DebuggerAgentImpl.cpp#newcode305 ...
4 years, 11 months ago (2016-01-25 20:19:06 UTC) #5
dgozman
PTAL https://codereview.chromium.org/1621923002/diff/60001/third_party/WebKit/Source/core/inspector/v8/V8DebuggerAgentImpl.cpp File third_party/WebKit/Source/core/inspector/v8/V8DebuggerAgentImpl.cpp (right): https://codereview.chromium.org/1621923002/diff/60001/third_party/WebKit/Source/core/inspector/v8/V8DebuggerAgentImpl.cpp#newcode224 third_party/WebKit/Source/core/inspector/v8/V8DebuggerAgentImpl.cpp:224: m_state->setNumber(DebuggerAgentState::pauseOnExceptionsState, (long)V8DebuggerImpl::DontPauseOnExceptions); On 2016/01/25 20:19:06, pfeldman wrote: > ...
4 years, 11 months ago (2016-01-26 01:16:54 UTC) #6
pfeldman
lgtm
4 years, 11 months ago (2016-01-26 01:18:32 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1621923002/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1621923002/80001
4 years, 11 months ago (2016-01-26 01:22:04 UTC) #9
commit-bot: I haz the power
Committed patchset #5 (id:80001)
4 years, 11 months ago (2016-01-26 02:58:00 UTC) #10
commit-bot: I haz the power
4 years, 11 months ago (2016-01-26 02:58:58 UTC) #12
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/bc1a5c04a5cc60467d1d57179f8b01d902e46854
Cr-Commit-Position: refs/heads/master@{#371433}

Powered by Google App Engine
This is Rietveld 408576698