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

Unified Diff: third_party/WebKit/Source/platform/v8_inspector/protocol-1.1/HeapProfiler.json

Issue 2035653005: DevTools: split protocol.json into files per domain. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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."
+ }
+ ]
+ }
+ ]
+}

Powered by Google App Engine
This is Rietveld 408576698