summaryrefslogtreecommitdiffstats
path: root/Source/WebCore/inspector/Inspector.json
diff options
context:
space:
mode:
Diffstat (limited to 'Source/WebCore/inspector/Inspector.json')
-rw-r--r--Source/WebCore/inspector/Inspector.json1445
1 files changed, 1445 insertions, 0 deletions
diff --git a/Source/WebCore/inspector/Inspector.json b/Source/WebCore/inspector/Inspector.json
new file mode 100644
index 0000000..ed5929e
--- /dev/null
+++ b/Source/WebCore/inspector/Inspector.json
@@ -0,0 +1,1445 @@
+[
+ {
+ "domain": "Inspector",
+ "types": [],
+ "commands": [
+ {
+ "name": "didEvaluateForTestInFrontend",
+ "parameters": [
+ { "name": "testCallId", "type": "integer" },
+ { "name": "jsonResult", "type": "string" }
+ ]
+ }
+ ],
+ "events": [
+ {
+ "name": "frontendReused"
+ },
+ {
+ "name": "bringToFront"
+ },
+ {
+ "name": "disconnectFromBackend"
+ },
+ {
+ "name": "reset"
+ },
+ {
+ "name": "showPanel",
+ "parameters": [
+ { "name": "panel", "type": "string" }
+ ]
+ },
+ {
+ "name": "startUserInitiatedDebugging"
+ },
+ {
+ "name": "evaluateForTestInFrontend",
+ "parameters": [
+ { "name": "testCallId", "type": "integer" },
+ { "name": "script", "type": "string" }
+ ]
+ },
+ {
+ "name": "inspect",
+ "parameters": [
+ { "name": "object", "$ref": "RemoteObject" },
+ { "name": "hints", "type": "object" }
+ ]
+ },
+ {
+ "name": "didCreateWorker",
+ "parameters": [
+ { "name": "id", "type": "integer" },
+ { "name": "url", "type": "string" },
+ { "name": "isShared", "type": "boolean" }
+ ]
+ },
+ {
+ "name": "didDestroyWorker",
+ "parameters": [
+ { "name": "id", "type": "integer" }
+ ]
+ }
+ ]
+ },
+ {
+ "domain": "Page",
+ "types": [],
+ "commands": [
+ {
+ "name": "addScriptToEvaluateOnLoad",
+ "parameters": [
+ { "name": "scriptSource", "type": "string" }
+ ]
+ },
+ {
+ "name": "removeAllScriptsToEvaluateOnLoad"
+ },
+ {
+ "name": "reloadPage",
+ "parameters": [
+ { "name": "ignoreCache", "type": "boolean" }
+ ]
+ },
+ {
+ "name": "openInInspectedWindow",
+ "parameters": [
+ { "name": "url", "type": "string" }
+ ]
+ },
+ {
+ "name": "setUserAgentOverride",
+ "parameters": [
+ { "name": "userAgent", "type": "string" }
+ ]
+ },
+ {
+ "name": "getCookies",
+ "returns": [
+ { "name": "cookies", "type": "array", "items": { "$ref" : "Cookie"} },
+ { "name": "cookiesString", "type": "string" }
+ ]
+ },
+ {
+ "name": "deleteCookie",
+ "parameters": [
+ { "name": "cookieName", "type": "string" },
+ { "name": "domain", "type": "string" }
+ ]
+ }
+ ],
+ "events": [
+ {
+ "name": "inspectedURLChanged",
+ "parameters": [
+ { "name": "url", "type": "string" }
+ ]
+ },
+ {
+ "name": "domContentEventFired",
+ "parameters": [
+ { "name": "time", "type": "number" }
+ ]
+ },
+ {
+ "name": "loadEventFired",
+ "parameters": [
+ { "name": "time", "type": "number" }
+ ]
+ }
+ ]
+ },
+ {
+ "domain": "Runtime",
+ "types": [],
+ "commands": [
+ {
+ "name": "evaluate",
+ "parameters": [
+ { "name": "expression", "type": "string" },
+ { "name": "objectGroup", "type": "string" },
+ { "name": "includeCommandLineAPI", "type": "boolean" }
+ ],
+ "returns": [
+ { "name": "result", "$ref": "RuntimeObject" }
+ ]
+ },
+ {
+ "name": "evaluateOn",
+ "parameters": [
+ { "name": "objectId", "type": "string" },
+ { "name": "expression", "type": "string" }
+ ],
+ "returns": [
+ { "name": "result", "$ref": "RuntimeObject" }
+ ]
+ },
+ {
+ "name": "getProperties",
+ "parameters": [
+ { "name": "objectId", "type": "string" },
+ { "name": "ignoreHasOwnProperty", "type": "boolean" },
+ { "name": "abbreviate", "type": "boolean" }
+ ],
+ "returns": [
+ { "name": "result", "type": "array", "items": { "$ref" : "RuntimeProperty"} }
+ ]
+ },
+ {
+ "name": "setPropertyValue",
+ "parameters": [
+ { "name": "objectId", "type": "string" },
+ { "name": "propertyName", "type": "string" },
+ { "name": "expression", "type": "string" }
+ ]
+ },
+ {
+ "name": "releaseObject",
+ "parameters": [
+ { "name": "objectId", "type": "string" }
+ ]
+ },
+ {
+ "name": "releaseObjectGroup",
+ "parameters": [
+ { "name": "objectGroup", "type": "string" }
+ ]
+ }
+ ]
+ },
+ {
+ "domain": "Console",
+ "types": [],
+ "commands": [
+ {
+ "name": "enable",
+ "returns": [
+ { "name": "expiredMessagesCount", "type": "integer" }
+ ]
+ },
+ {
+ "name": "disable"
+ },
+ {
+ "name": "clearConsoleMessages"
+ },
+ {
+ "name": "setMonitoringXHREnabled",
+ "parameters": [
+ { "name": "enabled", "type": "boolean" }
+ ]
+ },
+ {
+ "name": "addInspectedNode",
+ "parameters": [
+ { "name": "nodeId", "type": "integer" }
+ ]
+ }
+ ],
+ "events": [
+ {
+ "name": "consoleMessage",
+ "parameters": [
+ { "name": "messageObj", "$ref": "ConsoleMessage" }
+ ]
+ },
+ {
+ "name": "consoleMessageRepeatCountUpdated",
+ "parameters": [
+ { "name": "count", "type": "integer" }
+ ]
+ },
+ {
+ "name": "consoleMessagesCleared"
+ }
+ ]
+ },
+ {
+ "domain": "Network",
+ "description": "Network domain allows tracking network activities of the page. It exposes information about HTTP and WebSocket requests and responses, their headers, bodies, timing, etc. It also allows getting the tree of the Frames on the page along with information about their resources.",
+ "types": [
+ {
+ "id": "ResourceTiming",
+ "type": "object",
+ "description": "Timing information for the request.",
+ "properties": {
+ "requestTime": { "type": "number", "description": "Timing's requestTime is a baseline in seconds, while the other numbers are ticks in milliseconds relatively to this requestTime." },
+ "proxyStart": { "type": "number", "description": "Started resolving proxy." },
+ "proxyEnd": { "type": "number", "description": "Finished resolving proxy." },
+ "dnsStart": { "type": "number", "description": "Started DNS address resolve." },
+ "dnsEnd": { "type": "number", "description": "Finished DNS address resolve." },
+ "connectStart": { "type": "number", "description": "Started connecting to the remote host." },
+ "connectEnd": { "type": "number", "description": "Connected to the remote host." },
+ "sslStart": { "type": "number", "description": "Started SSL handshake." },
+ "sslEnd": { "type": "number", "description": "Finished SSL handshake." },
+ "sendStart": { "type": "number", "description": "Started sending request." },
+ "sendEnd": { "type": "number", "description": "Finished sending request." },
+ "receiveHeadersEnd": { "type": "number", "description": "Finished receiving response headers." }
+ }
+ },
+ {
+ "id": "ResourceRequest",
+ "type": "object",
+ "description": "HTTP request data.",
+ "properties": {
+ "url": { "type": "string", "description": "Request URL." },
+ "method": { "type": "string", "description": "HTTP request method." },
+ "headers": { "type": "object", "description": "HTTP request headers." },
+ "postData": { "type": "string", "optional": true, "description": "HTTP POST request data." }
+ }
+ },
+ {
+ "id": "ResourceResponse",
+ "type": "object",
+ "description": "HTTP response data.",
+ "properties": {
+ "status": { "type": "number", "description": "HTTP response status code." },
+ "statusText": { "type": "string", "description": "HTTP response status text." },
+ "headers": { "type": "object", "description": "HTTP response headers." },
+ "mimeType": { "type": "string", "description": "Resource mimeType as determined by the browser." },
+ "requestHeaders": { "type": "object", "optional": true, "description": "Refined HTTP request headers that were actually transmitted over the network." },
+ "connectionReused": { "type": "boolean", "description": "Specifies whether physical connection was actually reused for this request." },
+ "connectionID": { "type": "number", "description": "Physical connection id that was actually used for this request." },
+ "fromDiskCache": { "type": "boolean", "optional": true, "description": "Specifies that the resource was loaded from the disk cache." },
+ "timing": { "$ref": "ResourceTiming", "optional": true, "description": "Timing information for the given request." }
+ }
+ },
+ {
+ "id": "CachedResource",
+ "type": "object",
+ "description": "Information about the cached resource.",
+ "properties": {
+ "url": { "type": "string", "description": "Resource URL." },
+ "type": { "type": "string", "description": "Type of this resource. // FIXME" },
+ "response": { "$ref": "ResourceResponse", "description": "Cached response data." },
+ "bodySize": { "type": "number", "description": "Cached response body size." }
+ }
+ },
+ {
+ "id": "Frame",
+ "type": "object",
+ "description": "Information about the Frame on the page.",
+ "properties": {
+ "id": { "type": "string", "description": "Frame unique identifier." },
+ "parentId": { "type": "string", "description": "Parent frame identifier." },
+ "loaderId": { "type": "string", "description": "Identifier of the loader associated with this frame." },
+ "name": { "type": "string", "optional": true, "description": "Frame's name as specified in the tag." },
+ "url": { "type": "string", "description": "Frame document's URL." }
+ }
+ },
+ {
+ "id": "FrameResourceTree",
+ "type": "object",
+ "description": "Information about the Frame hierarchy along with their cached resources.",
+ "properties": {
+ "frame": { "$ref": "Frame", "description": "Frame information for this tree item." },
+ "childFrames": { "type": "array", "optional": true, "items": { "$ref": "FrameResourceTree" }, "description": "Child frames." },
+ "resources": { "type": "array",
+ "items": {
+ "type": "object",
+ "properties": {
+ "url": { "type": "string", "description": "Resource URL." },
+ "type": { "type": "string", "description": "Type of this resource. // FIXME" }
+ }
+ },
+ "description": "Information about frame resources."
+ }
+ }
+ }
+ ],
+ "commands": [
+ {
+ "name": "enable",
+ "description": "Enables network tracking, network events will now be delivered to the client."
+ },
+ {
+ "name": "disable",
+ "description": "Disables network tracking, prevents network events from being sent to the client."
+ },
+ {
+ "name": "getCachedResources",
+ "description": "Returns present frame / resource tree structure.",
+ "returns": [
+ { "name": "frameTree", "$ref": "FrameResourceTree", "description": "Present frame / resource tree structure." }
+ ]
+ },
+ {
+ "name": "getResourceContent",
+ "description": "Returns content of the given resource.",
+ "parameters": [
+ { "name": "frameId", "type": "string", "description": "Frame id to get resource for." },
+ { "name": "url", "type": "string", "description": "URL of the resource to get content for." },
+ { "name": "base64Encode", "type": "boolean", "optional": true, "description": "Requests that resource content is served as base64." }
+ ],
+ "returns": [
+ { "name": "content", "type": "string", "description": "Resource content." }
+ ]
+ },
+ {
+ "name": "setExtraHeaders",
+ "description": "Allows sending extra HTTP headers with the requests from this page.",
+ "parameters": [
+ { "name": "headers", "type": "object", "description": "Map with extra HTTP headers." }
+ ]
+ }
+ ],
+ "events": [
+ {
+ "name": "frameDetached",
+ "description": "Fired when frame has been detached from its parent.",
+ "parameters": [
+ { "name": "frameId", "type": "string", "description": "If of the frame that has been detached." }
+ ]
+ },
+ {
+ "name": "requestWillBeSent",
+ "description": "Fired when page is about to send HTTP request.",
+ "parameters": [
+ { "name": "identifier", "type": "integer", "description": "Request identifier." },
+ { "name": "frameId", "type": "string", "description": "Frame identifier." },
+ { "name": "loaderId", "type": "string", "description": "Loader identifier." },
+ { "name": "documentURL", "type": "string", "description": "URL of the document this resource is loaded for." },
+ { "name": "request", "$ref": "ResourceRequest", "description": "Request data." },
+ { "name": "redirectResponse", "$ref": "ResourceResponse", "description": "Redirect response data." },
+ { "name": "time", "type": "number", "description": "Timestamp." },
+ { "name": "callStack", "type": "array", "items": { "$ref" : "DebuggerStackFrame"}, "description": "JavaScript stack trace upon issuing this request." }
+ ]
+ },
+ {
+ "name": "resourceMarkedAsCached",
+ "description": "Fired when request is known to be served from memory cache.",
+ "parameters": [
+ { "name": "identifier", "type": "integer", "description": "Request identifier." }
+ ]
+ },
+ {
+ "name": "responseReceived",
+ "description": "Fired when HTTP response is available.",
+ "parameters": [
+ { "name": "identifier", "type": "integer", "description": "Request identifier." },
+ { "name": "time", "type": "number", "description": "Timestamp." },
+ { "name": "resourceType", "type": "string", "description": "Resource type. // FIXME" },
+ { "name": "response", "$ref": "ResourceResponse", "description": "Response data." }
+ ]
+ },
+ {
+ "name": "dataReceived",
+ "description": "Fired when data chunk was received over the network.",
+ "parameters": [
+ { "name": "identifier", "type": "integer", "description": "Request identifier." },
+ { "name": "time", "type": "number", "description": "Timestamp." },
+ { "name": "dataLength", "type": "integer", "description": "Data chunk length." },
+ { "name": "lengthReceived", "type": "integer", "description": "Actual bytes received (might be less than dataLength for compressed encodings)." }
+ ]
+ },
+ {
+ "name": "loadingFinished",
+ "description": "Fired when HTTP request has finished loading.",
+ "parameters": [
+ { "name": "identifier", "type": "integer", "description": "Request identifier." },
+ { "name": "finishTime", "type": "number", "description": "Timestamp." }
+ ]
+ },
+ {
+ "name": "loadingFailed",
+ "description": "Fired when HTTP request has failed to load.",
+ "parameters": [
+ { "name": "identifier", "type": "integer", "description": "Request identifier." },
+ { "name": "time", "type": "number", "description": "Timestamp." },
+ { "name": "errorText", "type": "string", "description": "User friendly error message." }
+ ]
+ },
+ {
+ "name": "resourceLoadedFromMemoryCache",
+ "description": "Fired when HTTP request has been served from memory cache.",
+ "parameters": [
+ { "name": "frameId", "type": "string", "description": "Frame identifier." },
+ { "name": "loaderId", "type": "string", "description": "Loader identifier." },
+ { "name": "documentURL", "type": "string", "description": "URL of the document this resource is loaded for." },
+ { "name": "time", "type": "number", "description": "Timestamp." },
+ { "name": "resource", "$ref": "CachedResource", "description": "Cached resource data." }
+ ]
+ },
+ {
+ "name": "initialContentSet",
+ "description": "Fired for XMLHttpRequests when their content becomes available.",
+ "parameters": [
+ { "name": "identifier", "type": "integer", "description": "Request identifier." },
+ { "name": "content", "type": "string", "description": "Resource content." },
+ { "name": "type", "type": "string", "description": "Resource type. // FIXME" }
+ ]
+ },
+ {
+ "name": "frameNavigated",
+ "description": "Fired once navigation of the frame has completed. Frame is now associated with the new loader.",
+ "parameters": [
+ { "name": "frame", "$ref": "Frame", "description": "Frame identifier." },
+ { "name": "loaderId", "type": "string", "description": "Loader identifier." }
+ ]
+ },
+ {
+ "name": "webSocketWillSendHandshakeRequest",
+ "description": "Fired when WebSocket is about to initiate handshake.",
+ "parameters": [
+ { "name": "identifier", "type": "integer", "description": "Request identifier." },
+ { "name": "time", "type": "number", "description": "Timestamp." },
+ { "name": "request", "type": "object", "description": "WebSocket request data." }
+ ]
+ },
+ {
+ "name": "webSocketHandshakeResponseReceived",
+ "description": "Fired when WebSocket handshake response becomes available.",
+ "parameters": [
+ { "name": "identifier", "type": "integer", "description": "Request identifier." },
+ { "name": "time", "type": "number", "description": "Timestamp." },
+ { "name": "response", "type": "object", "description": "WebSocket response data." }
+ ]
+ },
+ {
+ "name": "webSocketCreated",
+ "description": "Fired upon WebSocket creation.",
+ "parameters": [
+ { "name": "identifier", "type": "integer", "description": "Request identifier." },
+ { "name": "url", "type": "string", "description": "WebSocket request URL." }
+ ]
+ },
+ {
+ "name": "webSocketClosed",
+ "description": "Fired when WebSocket is closed.",
+ "parameters": [
+ { "name": "identifier", "type": "integer", "description": "Request identifier." },
+ { "name": "time", "type": "number", "description": "Timestamp." }
+ ]
+ }
+ ]
+ },
+ {
+ "domain": "Database",
+ "types": [],
+ "commands": [
+ {
+ "name": "getDatabaseTableNames",
+ "parameters": [
+ { "name": "databaseId", "type": "integer" }
+ ],
+ "returns": [
+ { "name": "tableNames", "type": "array", "items": { "type": "string" } }
+ ]
+ },
+ {
+ "name": "executeSQL",
+ "parameters": [
+ { "name": "databaseId", "type": "integer" },
+ { "name": "query", "type": "string" }
+ ],
+ "returns": [
+ { "name": "success", "type": "boolean" },
+ { "name": "transactionId", "type": "integer" }
+ ]
+ }
+ ],
+ "events": [
+ {
+ "name": "addDatabase",
+ "parameters": [
+ { "name": "database", "$ref": "DatabaseDatabase" }
+ ]
+ },
+ {
+ "name": "sqlTransactionSucceeded",
+ "parameters": [
+ { "name": "transactionId", "type": "integer" },
+ { "name": "columnNames", "type": "array", "items": { "type": "string" } },
+ { "name": "values", "type": "array", "items": { "type": "string or number" }}
+ ]
+ },
+ {
+ "name": "sqlTransactionFailed",
+ "parameters": [
+ { "name": "transactionId", "type": "integer" },
+ { "name": "sqlError", "$ref": "DatabaseError" }
+ ]
+ }
+ ]
+ },
+ {
+ "domain": "DOMStorage",
+ "types": [],
+ "commands": [
+ {
+ "name": "getDOMStorageEntries",
+ "parameters": [
+ { "name": "storageId", "type": "integer" }
+ ],
+ "returns": [
+ { "name": "entries", "type": "array", "items": { "$ref" : "DOMStorageEntry"} }
+ ]
+ },
+ {
+ "name": "setDOMStorageItem",
+ "parameters": [
+ { "name": "storageId", "type": "integer" },
+ { "name": "key", "type": "string" },
+ { "name": "value", "type": "string" }
+ ],
+ "returns": [
+ { "name": "success", "type": "boolean" }
+ ]
+ },
+ {
+ "name": "removeDOMStorageItem",
+ "parameters": [
+ { "name": "storageId", "type": "integer" },
+ { "name": "key", "type": "string" }
+ ],
+ "returns": [
+ { "name": "success", "type": "boolean" }
+ ]
+ }
+ ],
+ "events": [
+ {
+ "name": "addDOMStorage",
+ "parameters": [
+ { "name": "storage", "$ref": "DOMStorageStorage" }
+ ]
+ },
+ {
+ "name": "updateDOMStorage",
+ "parameters": [
+ { "name": "storageId", "type": "integer" }
+ ]
+ }
+ ]
+ },
+ {
+ "domain": "ApplicationCache",
+ "types": [],
+ "commands": [
+ {
+ "name": "getApplicationCaches",
+ "returns": [
+ { "name": "applicationCaches", "$ref": "AppCache" }
+ ]
+ }
+ ],
+ "events": [
+ {
+ "name": "updateApplicationCacheStatus",
+ "parameters": [
+ { "name": "status", "type": "integer" }
+ ]
+ },
+ {
+ "name": "updateNetworkState",
+ "parameters": [
+ { "name": "isNowOnline", "type": "boolean" }
+ ]
+ }
+ ]
+ },
+ {
+ "domain": "DOM",
+ "description": "This domain exposes DOM read/write operations. Each DOM Node is represented with its mirror object that has an <code>id</code>. This <code>id</code> can be used to get additional information on the Node, convert it into the JavaScript object, etc. It is important that client receives DOM events only for the nodes that are known to the client. Backend keeps track of the nodes that were sent to the client and never sends the same node twice. It is client's responsibility to collect information about the nodes that were sent to the client.",
+ "types": [
+ {
+ "id": "DOMNode",
+ "type": "object",
+ "properties": {
+ "id": { "type": "integer", "description": "Node identifier that is passed into the rest of the DOM messages as the <code>nodeId</code>. Backend will only push node with given <code>id</code> once. It is aware of all requested nodes and will only fire DOM events for nodes known to the client." },
+ "nodeType": { "type": "integer", "description": "<code>Node</code>'s nodeType." },
+ "nodeName": { "type": "string", "description": "<code>Node</code>'s nodeName." },
+ "localName": { "type": "string", "description": "<code>Node</code>'s localName." },
+ "nodeValue": { "type": "string", "description": "<code>Node</code>'s nodeValue." },
+ "childNodeCount": { "type": "integer", "optional": true, "description": "Child count for <code>Container</code> nodes." },
+ "children": { "type": "array", "optional": true, "items": { "$ref" : "DOMNode" }, "description": "Child nodes of this node when requested with children." },
+ "attributes": { "type": "array", "optional": true, "items": { "type" : "string" }, "description": "Attributes of the <code>Element</code> node in the form of flat array <code>[name1, value1, name2, value2]</code>." },
+ "documentURL": { "type": "string", "optional": true, "description": "Document URL that <code>Document</code> or <code>FrameOwner</code> node points to." },
+ "publicId": { "type": "string", "optional": true, "description": "<code>DocumentType</code>'s publicId. // FIXME" },
+ "systemId": { "type": "string", "optional": true, "description": "<code>DocumentType</code>'s systemId. // FIXME" },
+ "internalSubset": { "type": "string", "optional": true, "description": "<code>DocumentType</code>'s internalSubset. // FIXME" },
+ "name": { "type": "string", "optional": true, "description": "<code>Attr</code>'s name. // FIXME" },
+ "value": { "type": "string", "optional": true, "description": "<code>Attr</code>'s value. // FIXME" }
+ },
+ "description": "DOM interaction is implemented in terms of mirror objects that represent the actual DOM nodes. DOMNode is a base node mirror type."
+ },
+ {
+ "id": "DOMEventListener",
+ "type": "object",
+ "properties": {
+ "type": { "type": "string", "description": "<code>EventListener</code>'s type." },
+ "useCapture": { "type": "boolean", "description": "<code>EventListener</code>'s useCapture." },
+ "isAttribute": { "type": "boolean", "description": "<code>EventListener</code>'s isAttribute." },
+ "nodeId": { "type": "integer", "description": "Target <code>DOMNode</code> id." },
+ "listenerBody": { "type": "string", "description": "Listener function body." },
+ "sourceName": { "type": "string", "optional" : true, "description": "Handler location source name." },
+ "lineNumber": { "type": "number", "optional" : true, "description": "Handler location line number." }
+ },
+ "description": "DOM interaction is implemented in terms of mirror objects that represent the actual DOM nodes. DOMNode is a base node mirror type."
+ }
+ ],
+ "commands": [
+ {
+ "name": "getDocument",
+ "returns": [
+ { "name": "root", "$ref": "DOMNode", "description": "Resulting node." }
+ ],
+ "description": "Returns the root DOM node to the caller."
+ },
+ {
+ "name": "getChildNodes",
+ "parameters": [
+ { "name": "nodeId", "type": "integer", "description": "Id of the node to get children for." }
+ ],
+ "description": "Requests that children of the node with given id are returned to the caller in form of <code>setChildNodes</code> events."
+ },
+ {
+ "name": "querySelector",
+ "parameters": [
+ { "name": "nodeId", "type": "integer", "description": "Id of the node to query upon." },
+ { "name": "selectors", "type": "string", "description": "Selector string." },
+ { "name": "documentWide", "type": "boolean", "description": "Set to true to start querying from the node's document." }
+ ],
+ "returns": [
+ { "name": "elementId", "type": "integer", "description": "Query selector result." }
+ ],
+ "description": "Executes <code>querySelector</code> on a given node. Setting <code>documentWide</code> to true starts selecting from the document node."
+ },
+ {
+ "name": "querySelectorAll",
+ "parameters": [
+ { "name": "nodeId", "type": "integer", "description": "Id of the node to query upon." },
+ { "name": "selectors", "type": "string", "description": "Selector string." },
+ { "name": "documentWide", "type": "boolean", "description": "Set to true to start querying from the node's document." }
+ ],
+ "returns": [
+ { "name": "nodeIds", "type": "array", "items": { "type": "integer" }, "description": "Query selector result." }
+ ],
+ "description": "Executes <code>querySelectorAll</code> on a given node. Setting <code>documentWide</code> to true starts selecting from the document node."
+ },
+ {
+ "name": "setNodeName",
+ "parameters": [
+ { "name": "nodeId", "type": "integer", "description": "Id of the node to set name for." },
+ { "name": "name", "type": "string", "description": "New node's name." }
+ ],
+ "returns": [
+ { "name": "outNodeId", "type": "integer", "description": "New node's id." }
+ ],
+ "description": "Sets node name for a node with given id."
+ },
+ {
+ "name": "setNodeValue",
+ "parameters": [
+ { "name": "nodeId", "type": "integer", "description": "Id of the node to set value for." },
+ { "name": "value", "type": "string", "description": "New node's value." }
+ ],
+ "description": "Sets node value for a node with given id."
+ },
+ {
+ "name": "removeNode",
+ "parameters": [
+ { "name": "nodeId", "type": "integer", "description": "Id of the node to remove." }
+ ],
+ "description": "Removes node with given id."
+ },
+ {
+ "name": "setAttribute",
+ "parameters": [
+ { "name": "elementId", "type": "integer", "description": "Id of the element to set attribute for." },
+ { "name": "name", "type": "string", "description": "Attribute name." },
+ { "name": "value", "type": "string", "description": "Attribute value." }
+ ],
+ "description": "Sets attribute for an element with given id."
+ },
+ {
+ "name": "removeAttribute",
+ "parameters": [
+ { "name": "elementId", "type": "integer", "description": "Id of the element to remove attribute from." },
+ { "name": "name", "type": "string", "description": "Name of the attribute to remove." }
+ ],
+ "description": "Removes attribute with given name from an element with given id."
+ },
+ {
+ "name": "getEventListenersForNode",
+ "parameters": [
+ { "name": "nodeId", "type": "integer", "description": "Id of the node to get listeners for." }
+ ],
+ "returns": [
+ { "name": "listenersArray", "type": "array", "items": { "$ref" : "DOMEventListener"}, "description": "Array of relevant listeners." }
+ ],
+ "description": "Returns event listeners relevant to the node."
+ },
+ {
+ "name": "copyNode",
+ "parameters": [
+ { "name": "nodeId", "type": "integer", "description": "Id of the node to copy." }
+ ],
+ "description": "Copies node's HTML markup into the clipboard."
+ },
+ {
+ "name": "getOuterHTML",
+ "parameters": [
+ { "name": "nodeId", "type": "integer", "description": "Id of the node to get markup for." }
+ ],
+ "returns": [
+ { "name": "outerHTML", "type": "string", "description": "Outer HTML markup." }
+ ],
+ "description": "Returns node's HTML markup."
+ },
+ {
+ "name": "setOuterHTML",
+ "parameters": [
+ { "name": "nodeId", "type": "integer", "description": "Id of the node to set markup for." },
+ { "name": "outerHTML", "type": "string", "description": "Outer HTML markup to set." }
+ ],
+ "returns": [
+ { "name": "outNodeId", "type": "integer", "description": "Setting outer HTML can change node's id." }
+ ],
+ "description": "Sets node HTML markup, returns new node id."
+ },
+ {
+ "name": "performSearch",
+ "parameters": [
+ { "name": "query", "type": "string", "description": "Plain text or query selector or XPath search query." },
+ { "name": "runSynchronously", "type": "boolean", "description": "When set to true, performing search synchronously (can block user interaction)." }
+ ],
+ "description": "Starts asynchronous search for a given string in the DOM tree. Use <code>cancelSearch</code> to stop given asynchronous search task."
+ },
+ {
+ "name": "cancelSearch",
+ "description": "Cancels asynchronous search started with <code>performSearch</code>."
+ },
+ {
+ "name": "pushNodeToFrontend",
+ "parameters": [
+ { "name": "objectId", "type": "string", "description": "JavaScript object id to convert into node." }
+ ],
+ "returns": [
+ { "name": "nodeId", "type": "integer", "description": "Node id for given object." }
+ ],
+ "description": "Requests that the node is sent to the caller given the JavaScript node object reference."
+ },
+ {
+ "name": "setSearchingForNode",
+ "parameters": [
+ { "name": "enabled", "type": "boolean" }
+ ],
+ "returns": [
+ { "name": "newState", "type": "boolean" }
+ ]
+ },
+ {
+ "name": "highlightDOMNode",
+ "parameters": [
+ { "name": "nodeId", "type": "integer" }
+ ]
+ },
+ {
+ "name": "hideDOMNodeHighlight"
+ },
+ {
+ "name": "highlightFrame",
+ "parameters": [
+ { "name": "frameId", "type": "string" }
+ ]
+ },
+ {
+ "name": "hideFrameHighlight"
+ },
+
+ {
+ "name": "pushNodeByPathToFrontend",
+ "parameters": [
+ { "name": "path", "type": "string", "description": "Path to node in the proprietary format." }
+ ],
+ "returns": [
+ { "name": "nodeId", "type": "integer", "description": "Id of the node for given path." }
+ ],
+ "description": "Requests that the node is sent to the caller given its path. // FIXME, use XPath"
+ },
+ {
+ "name": "resolveNode",
+ "parameters": [
+ { "name": "nodeId", "type": "integer", "description": "Id of the node to resolve." }
+ ],
+ "returns": [
+ { "name": "object", "$ref": "Object", "description": "JavaScript object wrapper for given node." }
+ ],
+ "description": "Resolves JavaScript node object for given node id."
+ }
+ ],
+ "events": [
+ {
+ "name": "documentUpdated",
+ "description": "Fired when <code>Document</code> has been totally updated. Node ids are no longer valid."
+ },
+ {
+ "name": "setChildNodes",
+ "parameters": [
+ { "name": "parentId", "type": "integer", "description": "Parent node id to populate with children." },
+ { "name": "nodes", "type": "array", "items": { "$ref" : "DOMNode"}, "description": "Child nodes array." }
+ ],
+ "description": "Fired when backend wants to provide client with the missing DOM structure. This happens upon most of the calls requesting node ids."
+ },
+ {
+ "name": "attributesUpdated",
+ "parameters": [
+ { "name": "id", "type": "integer", "description": "Id of the node that has changed." },
+ { "name": "attributes", "type": "array", "items": { "$ref" : "DOMAttribute"}, "description": "New attributes value." }
+ ],
+ "description": "Fired when <code>Element</code>'s attributes are updated."
+ },
+ {
+ "name": "characterDataModified",
+ "parameters": [
+ { "name": "id", "type": "integer", "description": "Id of the node that has changed." },
+ { "name": "newValue", "type": "string", "description": "New text value." }
+ ],
+ "description": "Mirrors <code>DOMCharacterDataModified</code> event."
+ },
+ {
+ "name": "childNodeCountUpdated",
+ "parameters": [
+ { "name": "id", "type": "integer", "description": "Id of the node that has changed." },
+ { "name": "newValue", "type": "integer", "description": "New node count." }
+ ],
+ "description": "Fired when <code>Container</code>'s child node count has changed."
+ },
+ {
+ "name": "childNodeInserted",
+ "parameters": [
+ { "name": "parentId", "type": "integer", "description": "Id of the node that has changed." },
+ { "name": "prevId", "type": "integer", "description": "If of the previous siblint." },
+ { "name": "node", "$ref": "DOMNode", "description": "Inserted node data." }
+ ],
+ "description": "Mirrors <code>DOMNodeInserted</code> event."
+ },
+ {
+ "name": "childNodeRemoved",
+ "parameters": [
+ { "name": "parentId", "type": "integer", "description": "Parent id." },
+ { "name": "id", "type": "integer", "description": "Id of the node that has been removed." }
+ ],
+ "description": "Mirrors <code>DOMNodeRemoved</code> event."
+ },
+ {
+ "name": "searchResults",
+ "parameters": [
+ { "name": "nodeIds", "type": "array", "items": { "type": "integer" }, "description": "Ids of the search result nodes." }
+ ],
+ "description": "Pushes search results initiated using <code>performSearch</code> to the client."
+ }
+ ]
+ },
+ {
+ "domain": "CSS",
+ "types": [],
+ "commands": [
+ {
+ "name": "getStylesForNode",
+ "parameters": [
+ { "name": "nodeId", "type": "integer" }
+ ],
+ "returns": [
+ { "name": "styles", "$ref": "CSSNodeStyles" }
+ ]
+ },
+ {
+ "name": "getComputedStyleForNode",
+ "parameters": [
+ { "name": "nodeId", "type": "integer" }
+ ],
+ "returns": [
+ { "name": "style", "$ref": "CSSComputedStyle" }
+ ]
+ },
+ {
+ "name": "getInlineStyleForNode",
+ "parameters": [
+ { "name": "nodeId", "type": "integer" }
+ ],
+ "returns": [
+ { "name": "style", "$ref": "CSSStyle" }
+ ]
+ },
+ {
+ "name": "getAllStyleSheets",
+ "returns": [
+ { "name": "styleSheetInfos", "type": "array", "items": { "$ref": "CSSStyleSheetInfo" } }
+ ]
+ },
+ {
+ "name": "getStyleSheet",
+ "parameters": [
+ { "name": "styleSheetId", "type": "string" }
+ ],
+ "returns": [
+ { "name": "styleSheet", "$ref": "CSSStyleSheet" }
+ ]
+ },
+ {
+ "name": "getStyleSheetText",
+ "parameters": [
+ { "name": "styleSheetId", "type": "string" }
+ ],
+ "returns": [
+ { "name": "url", "type": "string" },
+ { "name": "text", "type": "string" }
+ ]
+ },
+ {
+ "name": "setStyleSheetText",
+ "parameters": [
+ { "name": "styleSheetId", "type": "string" },
+ { "name": "text", "type": "string" }
+ ],
+ "returns": [
+ { "name": "success", "type": "boolean" }
+ ]
+ },
+ {
+ "name": "setPropertyText",
+ "parameters": [
+ { "name": "styleId", "$ref": "CSSStyleId" },
+ { "name": "propertyIndex", "type": "integer" },
+ { "name": "text", "type": "string" },
+ { "name": "overwrite", "type": "boolean" }
+ ],
+ "returns": [
+ { "name": "style", "$ref": "CSSStyle" }
+ ]
+ },
+ {
+ "name": "toggleProperty",
+ "parameters": [
+ { "name": "styleId", "$ref": "CSSStyleId" },
+ { "name": "propertyIndex", "type": "integer" },
+ { "name": "disable", "type": "boolean" }
+ ],
+ "returns": [
+ { "name": "style", "$ref": "CSSStyle" }
+ ]
+ },
+ {
+ "name": "setRuleSelector",
+ "parameters": [
+ { "name": "ruleId", "$ref": "CSSRuleId" },
+ { "name": "selector", "type": "string" }
+ ],
+ "returns": [
+ { "name": "rule", "$ref": "CSSRule" }
+ ]
+ },
+ {
+ "name": "addRule",
+ "parameters": [
+ { "name": "contextNodeId", "type": "integer" },
+ { "name": "selector", "type": "string" }
+ ],
+ "returns": [
+ { "name": "rule", "$ref": "CSSRule" }
+ ]
+ },
+ {
+ "name": "getSupportedCSSProperties",
+ "returns": [
+ { "name": "cssProperties", "type": "array", "items": { "type": "string" } }
+ ]
+ }
+ ]
+ },
+ {
+ "domain": "Timeline",
+ "description": "Timeline provides its clients with instrumentation records that are generated during the page runtime. Timeline instrumentation can be started and stopped using corresponding commands. While timeline is started, it is generating timeline event records.",
+ "types": [
+ {
+ "id": "TimelineRecord",
+ "type": "object",
+ "properties": {
+ "type": { "type": "string", "description": "Event type." },
+ "data": { "type": "object", "description": "Event data." },
+ "children": { "type": "array", "optional" : true, "items": { "$ref": "TimelineRecord" }, "description": "Nested records." }
+ },
+ "description": "Timeline record contains information about the recorded activity."
+ }
+ ],
+ "commands": [
+ {
+ "name": "start",
+ "description": "Starts capturing instrumentation events."
+ },
+ {
+ "name": "stop",
+ "description": "Stops capturing instrumentation events."
+ }
+ ],
+ "events": [
+ {
+ "name": "started",
+ "description": "Fired when timeline has been started."
+ },
+ {
+ "name": "stopped",
+ "description": "Fired when timeline has been stopped."
+ },
+ {
+ "name": "eventRecorded",
+ "parameters": [
+ { "name": "record", "$ref": "TimelineRecord", "description": "Timeline record data." }
+ ],
+ "description": "Fired for every instrumentation event while timeline is started."
+ }
+ ]
+ },
+ {
+ "domain": "Debugger",
+ "description": "Debugger domain exposes JavaScript debugging functions. It allows setting and removing breakpoints, stepping through execution, exploring stack traces, etc.",
+ "types": [
+ {
+ "id": "Location",
+ "type": "object",
+ "properties": {
+ "sourceID": { "type": "string", "description": "Script identifier as reported by the <code>scriptParsed</code>" },
+ "lineNumber": { "type": "integer", "description": "Line number in the script." },
+ "columnNumber": { "type": "integer", "description": "Column number in the script." }
+ },
+ "description": "Location in the source code."
+ },
+ {
+ "id": "CallFrame",
+ "type": "object",
+ "properties": {
+ "id": { "type": "string", "description": "Call frame identifier" },
+ "type": { "type": "string", "description": "Call frame type. // FIXME" },
+ "functionName": { "type": "string", "description": "Name of the function called on this frame." },
+ "sourceID": { "type": "string", "description": "Script identifier." },
+ "line": { "type": "integer", "description": "Line number in the script." },
+ "column": { "type": "integer", "description": "Column number in the script." },
+ "scopeChain": { "type": "array", "items": { "type": "object" }, "description": "Scope chain for given call frame. // FIXME" }
+ },
+ "description": "Debugger call frame. Array of call frames form call stack."
+ }
+ ],
+ "commands": [
+ {
+ "name": "enable",
+ "description": "Enables debugger for given page."
+ },
+ {
+ "name": "disable",
+ "description": "Disables debugger for given page."
+ },
+ {
+ "name": "setBreakpointsActive",
+ "parameters": [
+ { "name": "active", "type": "boolean", "description": "New value for breakpoints active state." }
+ ],
+ "description": "Activates / deactivates all breakpoints on the page."
+ },
+ {
+ "name": "setBreakpointByUrl",
+ "parameters": [
+ { "name": "url", "type": "string", "description": "URL of the resource to set breakpoint on." },
+ { "name": "lineNumber", "type": "integer", "description": "Line number to set breakpoint at." },
+ { "name": "columnNumber", "type": "integer", "optional": true, "description": "Offset in the line to set breakpoint at." },
+ { "name": "condition", "type": "string", "optional": true, "description": "Expression to use as a breakpoint condition. When specified, debugger will only stop on the breakpoint if this expression evaluates to true." },
+ { "name": "enabled", "type": "boolean", "optional": true, "description": "Determines initial state for the breakpoint." }
+ ],
+ "returns": [
+ { "name": "breakpointId", "type": "string", "description": "Id of the created breakpoint for further manipulations." },
+ { "name": "locations", "type": "array", "items": { "$ref" : "Location"}, "description": "List of the locations this breakpoint resolved into." }
+ ],
+ "description": "Sets JavaScript breakpoint at a given location specified by URL. This breakpoint will survive page reload."
+ },
+ {
+ "name": "setBreakpoint",
+ "parameters": [
+ { "name": "sourceId", "type": "string", "description": "Source ID of the resource to set breakpoint on (as reported by <code>scriptParsed</code>)." },
+ { "name": "lineNumber", "type": "integer", "description": "Line number to set breakpoint at." },
+ { "name": "columnNumber", "type": "integer", "optional": true, "description": "Offset in the line to set breakpoint at." },
+ { "name": "condition", "type": "string", "optional": true, "description": "Expression to use as a breakpoint condition. When specified, debugger will only stop on the breakpoint if this expression evaluates to true." },
+ { "name": "enabled", "type": "boolean", "optional": true, "description": "Determines initial state for the breakpoint." }
+ ],
+ "returns": [
+ { "name": "breakpointId", "type": "string", "description": "Id of the created breakpoint for further manipulations." },
+ { "name": "actualLineNumber", "type": "integer", "description": "Line number in the script." },
+ { "name": "actualColumnNumber", "type": "integer", "description": "Column number in the script." }
+ ],
+ "description": "Sets JavaScript breakpoint at a given location."
+ },
+ {
+ "name": "removeBreakpoint",
+ "parameters": [
+ { "name": "breakpointId", "type": "string" }
+ ],
+ "description": "Removes JavaScript breakpoint."
+ },
+ {
+ "name": "continueToLocation",
+ "parameters": [
+ { "name": "sourceId", "type": "string", "description": "Source ID of the resource to continue to (as reported by <code>scriptParsed</code>)." },
+ { "name": "lineNumber", "type": "integer", "description": "Line number to stop at." },
+ { "name": "columnNumber", "type": "integer", "description": "Column number to stop at." }
+ ],
+ "description": "Continues execution until specific location is reached."
+ },
+ {
+ "name": "stepOver",
+ "description": "Steps over the statement."
+ },
+ {
+ "name": "stepInto",
+ "description": "Steps into the statement."
+ },
+ {
+ "name": "stepOut",
+ "description": "Steps out of the function."
+ },
+ {
+ "name": "pause",
+ "description": "Stops on the next JavaScript statement."
+ },
+ {
+ "name": "resume",
+ "description": "Resumes JavaScript execution."
+ },
+ {
+ "name": "editScriptSource",
+ "parameters": [
+ { "name": "sourceID", "type": "string", "description": "Id of the script to edit." },
+ { "name": "newContent", "type": "string", "description": "New content of the script." }
+ ],
+ "returns": [
+ { "name": "result", "type": "string", "description": "New content of the script." },
+ { "name": "stackFrames", "type": "array", "items": { "$ref" : "CallFrame"}, "description": "New stack trace in case editing has happened while VM was stopped." }
+ ],
+ "description": "Edits JavaScript script live."
+ },
+ {
+ "name": "getScriptSource",
+ "parameters": [
+ { "name": "sourceID", "type": "string", "description": "Id of the script to get source for." }
+ ],
+ "returns": [
+ { "name": "scriptSource", "type": "string", "description": "Script source." }
+ ],
+ "description": "Returns source for the script with given ID."
+ },
+ {
+ "name": "setPauseOnExceptionsState",
+ "parameters": [
+ { "name": "pauseOnExceptionsState", "type": "integer", "description": "Pause on exceptions mode. // FIXME, make enumerable." }
+ ],
+ "description": "Defines pause on exceptions state. Can be set to stop on all exceptions, uncaught exceptions or no exceptions."
+ },
+ {
+ "name": "evaluateOnCallFrame",
+ "parameters": [
+ { "name": "callFrameId", "type": "string", "description": "Call frame identifier to evaluate on. This identifier is a part of backtrace reported by the <code>pausedScript</code>." },
+ { "name": "expression", "type": "string", "description": "Expression to evaluate." },
+ { "name": "objectGroup", "type": "string", "description": "String object group name to put result into (allows rapid releasing resulting object handles using <code>releaseObjectGroup</code>)." },
+ { "name": "includeCommandLineAPI", "type": "boolean", "optional": true, "description": "Specifies whether command line API should be available to the evaluated expression, defaults to false." }
+ ],
+ "returns": [
+ { "name": "result", "$ref": "Object", "description": "Object wrapper for the evaluation result." }
+ ],
+ "description": "Evaluates expression on a given call frame."
+ }
+ ],
+ "events": [
+ {
+ "name": "debuggerWasEnabled",
+ "description": "Fired when debugger gets enabled."
+ },
+ {
+ "name": "debuggerWasDisabled",
+ "description": "Fired when debugger gets disabled."
+ },
+ {
+ "name": "scriptParsed",
+ "parameters": [
+ { "name": "sourceID", "type": "string", "description": "Identifier of the script parsed." },
+ { "name": "url", "type": "string", "description": "URL of the script parsed (if any)." },
+ { "name": "lineOffset", "type": "integer", "description": "Line offset of the script within the resource with given URL (for script tags)." },
+ { "name": "columnOffset", "type": "integer", "description": "Column offset of the script within the resource with given URL." },
+ { "name": "length", "type": "integer", "description": "Length of the script" },
+ { "name": "scriptWorldType", "type": "integer", "description": "Script type. // FIXME." }
+ ],
+ "description": "Fired when virtual machine parses script. This even is also fired for all known scripts upon enabling debugger."
+ },
+ {
+ "name": "scriptFailedToParse",
+ "parameters": [
+ { "name": "url", "type": "string", "description": "URL of the script that failed to parse." },
+ { "name": "data", "type": "string", "description": "Source text of the script that failed to parse." },
+ { "name": "firstLine", "type": "integer", "description": "Line offset of the script within the resource." },
+ { "name": "errorLine", "type": "integer", "description": "Line with error." },
+ { "name": "errorMessage", "type": "string", "description": "Parse error message." }
+ ],
+ "description": "Fired when virtual machine fails to parse the script."
+ },
+ {
+ "name": "breakpointResolved",
+ "parameters": [
+ { "name": "breakpointId", "type": "string", "description": "Breakpoint unique identifier." },
+ { "name": "sourceId", "type": "string", "description": "Identifier of the script breakpoint is set in." },
+ { "name": "lineNumber", "type": "integer", "description": "Line number of the statement breakpoint is set on." },
+ { "name": "columnNumber", "type": "integer", "description": "Column offset of the statement breakpoint is set on." }
+ ],
+ "description": "Fired when breakpoint is resolved to an actual script and location."
+ },
+ {
+ "name": "paused",
+ "parameters": [
+ {
+ "name": "details",
+ "type": "object",
+ "properties": {
+ "callFrames": { "type": "array", "items": { "$ref": "CallFrame" }, "description": "Call stack the virtual machine stopped on." }
+ },
+ "description": "Call stack information."
+ }
+ ],
+ "description": "Fired when the virtual machine stopped on breakpoint or exception or any other stop criteria."
+ },
+ {
+ "name": "resumed",
+ "description": "Fired when the virtual machine resumed execution."
+ }
+ ]
+ },
+ {
+ "domain": "BrowserDebugger",
+ "description": "Browser debugging allows setting breakpoints on particular DOM operations and events. JavaScript execution will stop on these operations as if there was a regular breakpoint set.",
+ "commands": [
+ {
+ "name": "setDOMBreakpoint",
+ "parameters": [
+ { "name": "nodeId", "type": "integer", "description": "Identifier of the node to set breakpoint on." },
+ { "name": "type", "type": "integer", "description": "Type of the operation to stop upon." }
+ ],
+ "description": "Sets breakpoint on particular operation with DOM. "
+ },
+ {
+ "name": "removeDOMBreakpoint",
+ "parameters": [
+ { "name": "nodeId", "type": "integer", "description": "Identifier of the node to remove breakpoint from." },
+ { "name": "type", "type": "integer", "description": "Type of the breakpoint to remove." }
+ ],
+ "description": "Removes DOM breakpoint that was set using <code>setDOMBreakpoint</code>."
+ },
+ {
+ "name": "setEventListenerBreakpoint",
+ "parameters": [
+ { "name": "eventName", "type": "string", "description": "Event name to stop on (any DOM event will do)." }
+ ],
+ "description": "Sets breakpoint on particular DOM event."
+ },
+ {
+ "name": "removeEventListenerBreakpoint",
+ "parameters": [
+ { "name": "eventName", "type": "string", "description": "Event name." }
+ ],
+ "description": "Removes breakpoint on particular DOM event."
+ },
+ {
+ "name": "setXHRBreakpoint",
+ "parameters": [
+ { "name": "url", "type": "string", "description": "Resource URL substring. All XHRs having this substring in the URL will get stopped upon." }
+ ],
+ "description": "Sets breakpoint on XMLHttpRequest."
+ },
+ {
+ "name": "removeXHRBreakpoint",
+ "parameters": [
+ { "name": "url", "type": "string", "description": "Resource URL substring." }
+ ],
+ "description": "Removes breakpoint from XMLHttpRequest."
+ }
+ ]
+ },
+ {
+ "domain": "Profiler",
+ "types": [],
+ "commands": [
+ {
+ "name": "enable"
+ },
+ {
+ "name": "disable"
+ },
+ {
+ "name": "isEnabled",
+ "returns": [
+ { "name": "state", "type": "boolean" }
+ ]
+ },
+ {
+ "name": "start"
+ },
+ {
+ "name": "stop"
+ },
+ {
+ "name": "getProfileHeaders",
+ "returns": [
+ { "name": "headers", "type": "array", "items": { "$ref" : "ProfileHeader"} }
+ ]
+ },
+ {
+ "name": "getProfile",
+ "parameters": [
+ { "name": "type", "type": "string" },
+ { "name": "uid", "type": "integer" }
+ ],
+ "returns": [
+ { "name": "profile", "$ref": "Profile" }
+ ]
+ },
+ {
+ "name": "removeProfile",
+ "parameters": [
+ { "name": "type", "type": "string" },
+ { "name": "uid", "type": "integer" }
+ ]
+ },
+ {
+ "name": "clearProfiles"
+ },
+ {
+ "name": "takeHeapSnapshot",
+ "parameters": [
+ { "name": "detailed", "type": "boolean" }
+ ]
+ },
+ {
+ "name": "collectGarbage"
+ }
+ ],
+ "events": [
+ {
+ "name": "profilerWasEnabled"
+ },
+ {
+ "name": "profilerWasDisabled"
+ },
+ {
+ "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": "setRecordingProfile",
+ "parameters": [
+ { "name": "isProfiling", "type": "boolean" }
+ ]
+ },
+ {
+ "name": "resetProfiles"
+ },
+ {
+ "name": "reportHeapSnapshotProgress",
+ "parameters": [
+ { "name": "done", "type": "integer" },
+ { "name": "total", "type": "integer" }
+ ]
+ }
+ ]
+ }
+]