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

Issue 98273008: [DevTools] Send heap snapshot to the frontend immediatly when it is ready (Closed)

Created:
7 years ago by yurys
Modified:
6 years, 10 months ago
CC:
blink-reviews, caseq+blink_chromium.org, loislo+blink_chromium.org, eustas+blink_chromium.org, alph+blink_chromium.org, yurys+blink_chromium.org, lushnikov+blink_chromium.org, vsevik+blink_chromium.org, pfeldman+blink_chromium.org, paulirish+reviews_chromium.org, apavlov+blink_chromium.org, devtools-reviews_chromium.org, aandrey+blink_chromium.org
Visibility:
Public.

Description

Send heap snapshot to the frontend immediatly when it is ready HeapProfiler.takeHeapSnapshot command is now handled in the following way: Profiler starts taking snapshot immediately when the command arrives (as before) and if reportProgress param is true it will send HeapProfiler.reportHeapSnapshotProgress events. After that a series of snapshot chunks is sent to the frontend as HeapProfiler.addHeapSnapshotChunk events. When whole snapshot is sent the backend will sent response to HeapProfiler.takeHeapSnapshot command. The snapshot is going to be deleted automatically after it has been sent to the front-end. This means that all commands that require snapshot uid parameter will be removed from the protocol as there will be no way to find snapshot by uid on the backend. BUG=324769 R=alph@chromium.org Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=166131

Patch Set 1 #

Total comments: 5

Patch Set 2 : Updated tests #

Patch Set 3 : #

Patch Set 4 : Fixed test crash #

Unified diffs Side-by-side diffs Delta from patch set Stats (+133 lines, -99 lines) Patch
M LayoutTests/inspector-protocol/heap-profiler/heap-objects-tracking.html View 1 2 3 3 chunks +0 lines, -8 lines 0 comments Download
M LayoutTests/inspector-protocol/heap-profiler/heap-objects-tracking-expected.txt View 1 2 1 chunk +0 lines, -1 line 0 comments Download
M LayoutTests/inspector-protocol/heap-profiler/resources/heap-snapshot-common.js View 1 1 chunk +13 lines, -25 lines 0 comments Download
M LayoutTests/inspector/profiler/heap-snapshot-loader.html View 1 2 chunks +8 lines, -11 lines 0 comments Download
M LayoutTests/inspector/profiler/heap-snapshot-test.js View 1 2 chunks +9 lines, -10 lines 0 comments Download
M Source/core/inspector/InspectorHeapProfilerAgent.cpp View 1 3 chunks +28 lines, -7 lines 0 comments Download
M Source/devtools/front_end/HeapSnapshotView.js View 1 7 chunks +73 lines, -36 lines 0 comments Download
M Source/devtools/protocol.json View 1 2 1 chunk +2 lines, -1 line 0 comments Download

Messages

Total messages: 17 (0 generated)
yurys
7 years ago (2013-12-23 09:44:28 UTC) #1
alph
lgtm https://codereview.chromium.org/98273008/diff/1/Source/core/inspector/InspectorHeapProfilerAgent.cpp File Source/core/inspector/InspectorHeapProfilerAgent.cpp (right): https://codereview.chromium.org/98273008/diff/1/Source/core/inspector/InspectorHeapProfilerAgent.cpp#newcode276 Source/core/inspector/InspectorHeapProfilerAgent.cpp:276: m_frontend->reportHeapSnapshotProgress(m_totalWork, m_totalWork, &finished); Do you really need to ...
7 years ago (2013-12-23 14:06:58 UTC) #2
yurys
@qyearsley, @kkania, @marja: this change and subsequent removal of commands like HeapProfiler.getHeapSnapshot will require updating ...
7 years ago (2013-12-23 14:53:03 UTC) #3
marja
On 2013/12/23 14:53:03, yurys wrote: > @qyearsley, @kkania, @marja: this change and subsequent removal of ...
6 years, 11 months ago (2014-01-07 08:47:30 UTC) #4
yurys
On 2014/01/07 08:47:30, marja wrote: > On 2013/12/23 14:53:03, yurys wrote: > > @qyearsley, @kkania, ...
6 years, 11 months ago (2014-01-10 12:58:31 UTC) #5
marja
Yeah, that would work. Btw, I'm not sure if there are some tests which run ...
6 years, 11 months ago (2014-01-15 09:04:17 UTC) #6
yurys
PTAL
6 years, 10 months ago (2014-01-29 13:59:09 UTC) #7
kkania
-kkania, +stgao
6 years, 10 months ago (2014-01-29 16:45:30 UTC) #8
qyearsley
Question: Is this change in HeapProfiler.takeHeapSnapshot related to the removal of Memory.getDOMCounters or its subsequent ...
6 years, 10 months ago (2014-01-29 23:21:38 UTC) #9
stgao
-kkania +siddharthab The change of devtools protocol for heap snapshot looks good to me. Is ...
6 years, 10 months ago (2014-01-30 00:18:05 UTC) #10
yurys
On 2014/01/29 23:21:38, qyearsley wrote: > Question: Is this change in HeapProfiler.takeHeapSnapshot related to the ...
6 years, 10 months ago (2014-01-30 08:44:30 UTC) #11
yurys
On 2014/01/30 00:18:05, Shuotao wrote: > -kkania > +siddharthab > > The change of devtools ...
6 years, 10 months ago (2014-01-30 09:02:55 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/yurys@chromium.org/98273008/110001
6 years, 10 months ago (2014-01-30 09:10:26 UTC) #13
commit-bot: I haz the power
CQ bit was unchecked on CL. Ignoring.
6 years, 10 months ago (2014-01-30 11:46:42 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/yurys@chromium.org/98273008/130001
6 years, 10 months ago (2014-01-30 11:47:10 UTC) #15
commit-bot: I haz the power
CQ bit was unchecked on CL. Ignoring.
6 years, 10 months ago (2014-01-30 14:46:32 UTC) #16
yurys
6 years, 10 months ago (2014-01-30 14:49:59 UTC) #17
Message was sent while issue was closed.
Committed patchset #4 manually as r166131 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698