Index: third_party/WebKit/Source/platform/v8_inspector/protocol-1.1/HeapProfiler.json |
diff --git a/third_party/WebKit/Source/platform/v8_inspector/protocol-1.1/HeapProfiler.json b/third_party/WebKit/Source/platform/v8_inspector/protocol-1.1/HeapProfiler.json |
new file mode 100644 |
index 0000000000000000000000000000000000000000..690f01f3d50847002776529075e4420c820044e4 |
--- /dev/null |
+++ b/third_party/WebKit/Source/platform/v8_inspector/protocol-1.1/HeapProfiler.json |
@@ -0,0 +1,209 @@ |
+{ |
+ "domain": "HeapProfiler", |
+ "version": { |
+ "major": "1", |
+ "minor": "1" |
+ }, |
+ "hidden": true, |
+ "types": [ |
+ { |
+ "id": "ProfileHeader", |
+ "type": "object", |
+ "description": "Profile header.", |
+ "properties": [ |
+ { |
+ "name": "title", |
+ "type": "string", |
+ "description": "Profile title." |
+ }, |
+ { |
+ "name": "uid", |
+ "type": "integer", |
+ "description": "Unique identifier of the profile." |
+ }, |
+ { |
+ "name": "maxJSObjectId", |
+ "type": "integer", |
+ "optional": true, |
+ "description": "Last seen JS object Id." |
+ } |
+ ] |
+ }, |
+ { |
+ "id": "HeapSnapshotObjectId", |
+ "type": "string", |
+ "description": "Heap snashot object id." |
+ } |
+ ], |
+ "commands": [ |
+ { |
+ "name": "getProfileHeaders", |
+ "returns": [ |
+ { |
+ "name": "headers", |
+ "type": "array", |
+ "items": { |
+ "$ref": "ProfileHeader" |
+ } |
+ } |
+ ] |
+ }, |
+ { |
+ "name": "startTrackingHeapObjects" |
+ }, |
+ { |
+ "name": "stopTrackingHeapObjects" |
+ }, |
+ { |
+ "name": "getHeapSnapshot", |
+ "parameters": [ |
+ { |
+ "name": "uid", |
+ "type": "integer" |
+ } |
+ ] |
+ }, |
+ { |
+ "name": "removeProfile", |
+ "parameters": [ |
+ { |
+ "name": "uid", |
+ "type": "integer" |
+ } |
+ ] |
+ }, |
+ { |
+ "name": "clearProfiles" |
+ }, |
+ { |
+ "name": "takeHeapSnapshot", |
+ "parameters": [ |
+ { |
+ "name": "reportProgress", |
+ "type": "boolean", |
+ "optional": true, |
+ "description": "If true 'reportHeapSnapshotProgress' events will be generated while snapshot is being taken." |
+ } |
+ ] |
+ }, |
+ { |
+ "name": "collectGarbage" |
+ }, |
+ { |
+ "name": "getObjectByHeapObjectId", |
+ "parameters": [ |
+ { |
+ "name": "objectId", |
+ "$ref": "HeapSnapshotObjectId" |
+ }, |
+ { |
+ "name": "objectGroup", |
+ "type": "string", |
+ "optional": true, |
+ "description": "Symbolic group name that can be used to release multiple objects." |
+ } |
+ ], |
+ "returns": [ |
+ { |
+ "name": "result", |
+ "$ref": "Runtime.RemoteObject", |
+ "description": "Evaluation result." |
+ } |
+ ] |
+ }, |
+ { |
+ "name": "getHeapObjectId", |
+ "parameters": [ |
+ { |
+ "name": "objectId", |
+ "$ref": "Runtime.RemoteObjectId", |
+ "description": "Identifier of the object to get heap object id for." |
+ } |
+ ], |
+ "returns": [ |
+ { |
+ "name": "heapSnapshotObjectId", |
+ "$ref": "HeapSnapshotObjectId", |
+ "description": "Id of the heap snapshot object corresponding to the passed remote object id." |
+ } |
+ ] |
+ } |
+ ], |
+ "events": [ |
+ { |
+ "name": "addProfileHeader", |
+ "parameters": [ |
+ { |
+ "name": "header", |
+ "$ref": "ProfileHeader" |
+ } |
+ ] |
+ }, |
+ { |
+ "name": "addHeapSnapshotChunk", |
+ "parameters": [ |
+ { |
+ "name": "uid", |
+ "type": "integer" |
+ }, |
+ { |
+ "name": "chunk", |
+ "type": "string" |
+ } |
+ ] |
+ }, |
+ { |
+ "name": "finishHeapSnapshot", |
+ "parameters": [ |
+ { |
+ "name": "uid", |
+ "type": "integer" |
+ } |
+ ] |
+ }, |
+ { |
+ "name": "resetProfiles" |
+ }, |
+ { |
+ "name": "reportHeapSnapshotProgress", |
+ "parameters": [ |
+ { |
+ "name": "done", |
+ "type": "integer" |
+ }, |
+ { |
+ "name": "total", |
+ "type": "integer" |
+ } |
+ ] |
+ }, |
+ { |
+ "name": "lastSeenObjectId", |
+ "description": "If heap objects tracking has been started then backend regulary sends a current value for last seen object id and corresponding timestamp. If the were changes in the heap since last event then one or more heapStatsUpdate events will be sent before a new lastSeenObjectId event.", |
+ "parameters": [ |
+ { |
+ "name": "lastSeenObjectId", |
+ "type": "integer" |
+ }, |
+ { |
+ "name": "timestamp", |
+ "type": "number" |
+ } |
+ ] |
+ }, |
+ { |
+ "name": "heapStatsUpdate", |
+ "description": "If heap objects tracking has been started then backend may send update for one or more fragments", |
+ "parameters": [ |
+ { |
+ "name": "statsUpdate", |
+ "type": "array", |
+ "items": { |
+ "type": "integer" |
+ }, |
+ "description": "An array of triplets. Each triplet describes a fragment. The first integer is the fragment index, the second integer is a total count of objects for the fragment, the third integer is a total size of the objects for the fragment." |
+ } |
+ ] |
+ } |
+ ] |
+} |