DescriptionSend 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 #Messages
Total messages: 17 (0 generated)
|