Index: third_party/WebKit/Source/platform/v8_inspector/protocol/Profiler.json |
diff --git a/third_party/WebKit/Source/platform/v8_inspector/protocol/Profiler.json b/third_party/WebKit/Source/platform/v8_inspector/protocol/Profiler.json |
new file mode 100644 |
index 0000000000000000000000000000000000000000..210cb716fe3a59cda97058de55b7834e67f947b9 |
--- /dev/null |
+++ b/third_party/WebKit/Source/platform/v8_inspector/protocol/Profiler.json |
@@ -0,0 +1,217 @@ |
+{ |
+ "domain": "Profiler", |
+ "version": { |
+ "major": "1", |
+ "minor": "1" |
+ }, |
+ "dependencies": [ |
+ "Runtime", |
+ "Debugger" |
+ ], |
+ "hidden": true, |
+ "types": [ |
+ { |
+ "id": "CPUProfileNode", |
+ "type": "object", |
+ "description": "CPU Profile node. Holds callsite information, execution statistics and child nodes.", |
+ "properties": [ |
+ { |
+ "name": "functionName", |
+ "type": "string", |
+ "description": "Function name." |
+ }, |
+ { |
+ "name": "scriptId", |
+ "$ref": "Runtime.ScriptId", |
+ "description": "Script identifier." |
+ }, |
+ { |
+ "name": "url", |
+ "type": "string", |
+ "description": "URL." |
+ }, |
+ { |
+ "name": "lineNumber", |
+ "type": "integer", |
+ "description": "1-based line number of the function start position." |
+ }, |
+ { |
+ "name": "columnNumber", |
+ "type": "integer", |
+ "description": "1-based column number of the function start position." |
+ }, |
+ { |
+ "name": "hitCount", |
+ "type": "integer", |
+ "description": "Number of samples where this node was on top of the call stack." |
+ }, |
+ { |
+ "name": "callUID", |
+ "type": "number", |
+ "description": "Call UID." |
+ }, |
+ { |
+ "name": "children", |
+ "type": "array", |
+ "items": { |
+ "$ref": "CPUProfileNode" |
+ }, |
+ "description": "Child nodes." |
+ }, |
+ { |
+ "name": "deoptReason", |
+ "type": "string", |
+ "description": "The reason of being not optimized. The function may be deoptimized or marked as don't optimize." |
+ }, |
+ { |
+ "name": "id", |
+ "type": "integer", |
+ "description": "Unique id of the node." |
+ }, |
+ { |
+ "name": "positionTicks", |
+ "type": "array", |
+ "items": { |
+ "$ref": "PositionTickInfo" |
+ }, |
+ "description": "An array of source position ticks." |
+ } |
+ ] |
+ }, |
+ { |
+ "id": "CPUProfile", |
+ "type": "object", |
+ "description": "Profile.", |
+ "properties": [ |
+ { |
+ "name": "head", |
+ "$ref": "CPUProfileNode" |
+ }, |
+ { |
+ "name": "startTime", |
+ "type": "number", |
+ "description": "Profiling start time in seconds." |
+ }, |
+ { |
+ "name": "endTime", |
+ "type": "number", |
+ "description": "Profiling end time in seconds." |
+ }, |
+ { |
+ "name": "samples", |
+ "optional": true, |
+ "type": "array", |
+ "items": { |
+ "type": "integer" |
+ }, |
+ "description": "Ids of samples top nodes." |
+ }, |
+ { |
+ "name": "timestamps", |
+ "optional": true, |
+ "type": "array", |
+ "items": { |
+ "type": "number" |
+ }, |
+ "description": "Timestamps of the samples in microseconds." |
+ } |
+ ] |
+ }, |
+ { |
+ "id": "PositionTickInfo", |
+ "type": "object", |
+ "description": "Specifies a number of samples attributed to a certain source position.", |
+ "properties": [ |
+ { |
+ "name": "line", |
+ "type": "integer", |
+ "description": "Source line number (1-based)." |
+ }, |
+ { |
+ "name": "ticks", |
+ "type": "integer", |
+ "description": "Number of samples attributed to the source line." |
+ } |
+ ] |
+ } |
+ ], |
+ "commands": [ |
+ { |
+ "name": "enable" |
+ }, |
+ { |
+ "name": "disable" |
+ }, |
+ { |
+ "name": "setSamplingInterval", |
+ "parameters": [ |
+ { |
+ "name": "interval", |
+ "type": "integer", |
+ "description": "New sampling interval in microseconds." |
+ } |
+ ], |
+ "description": "Changes CPU profiler sampling interval. Must be called before CPU profiles recording started." |
+ }, |
+ { |
+ "name": "start" |
+ }, |
+ { |
+ "name": "stop", |
+ "returns": [ |
+ { |
+ "name": "profile", |
+ "$ref": "CPUProfile", |
+ "description": "Recorded profile." |
+ } |
+ ] |
+ } |
+ ], |
+ "events": [ |
+ { |
+ "name": "consoleProfileStarted", |
+ "parameters": [ |
+ { |
+ "name": "id", |
+ "type": "string" |
+ }, |
+ { |
+ "name": "location", |
+ "$ref": "Debugger.Location", |
+ "description": "Location of console.profile()." |
+ }, |
+ { |
+ "name": "title", |
+ "type": "string", |
+ "optional": true, |
+ "description": "Profile title passed as argument to console.profile()." |
+ } |
+ ], |
+ "description": "Sent when new profile recodring is started using console.profile() call." |
+ }, |
+ { |
+ "name": "consoleProfileFinished", |
+ "parameters": [ |
+ { |
+ "name": "id", |
+ "type": "string" |
+ }, |
+ { |
+ "name": "location", |
+ "$ref": "Debugger.Location", |
+ "description": "Location of console.profileEnd()." |
+ }, |
+ { |
+ "name": "profile", |
+ "$ref": "CPUProfile" |
+ }, |
+ { |
+ "name": "title", |
+ "type": "string", |
+ "optional": true, |
+ "description": "Profile title passed as argunet to console.profile()." |
+ } |
+ ] |
+ } |
+ ] |
+} |