Index: third_party/WebKit/Source/core/inspector/protocol/Tracing.json |
diff --git a/third_party/WebKit/Source/core/inspector/protocol/Tracing.json b/third_party/WebKit/Source/core/inspector/protocol/Tracing.json |
new file mode 100644 |
index 0000000000000000000000000000000000000000..7bb3c7fe86cd3fa0ccb18680cc01dcd61dadb070 |
--- /dev/null |
+++ b/third_party/WebKit/Source/core/inspector/protocol/Tracing.json |
@@ -0,0 +1,252 @@ |
+{ |
+ "domain": "Tracing", |
+ "version": { |
+ "major": "1", |
+ "minor": "1" |
+ }, |
+ "types": [ |
+ { |
+ "id": "MemoryDumpConfig", |
+ "type": "object", |
+ "description": "Configuration for memory dump. Used only when \"memory-infra\" category is enabled." |
+ }, |
+ { |
+ "id": "TraceConfig", |
+ "type": "object", |
+ "properties": [ |
+ { |
+ "name": "recordMode", |
+ "type": "string", |
+ "optional": true, |
+ "enum": [ |
+ "recordUntilFull", |
+ "recordContinuously", |
+ "recordAsMuchAsPossible", |
+ "echoToConsole" |
+ ], |
+ "description": "Controls how the trace buffer stores data." |
+ }, |
+ { |
+ "name": "enableSampling", |
+ "type": "boolean", |
+ "optional": true, |
+ "description": "Turns on JavaScript stack sampling." |
+ }, |
+ { |
+ "name": "enableSystrace", |
+ "type": "boolean", |
+ "optional": true, |
+ "description": "Turns on system tracing." |
+ }, |
+ { |
+ "name": "enableArgumentFilter", |
+ "type": "boolean", |
+ "optional": true, |
+ "description": "Turns on argument filter." |
+ }, |
+ { |
+ "name": "includedCategories", |
+ "type": "array", |
+ "items": { |
+ "type": "string" |
+ }, |
+ "optional": true, |
+ "description": "Included category filters." |
+ }, |
+ { |
+ "name": "excludedCategories", |
+ "type": "array", |
+ "items": { |
+ "type": "string" |
+ }, |
+ "optional": true, |
+ "description": "Excluded category filters." |
+ }, |
+ { |
+ "name": "syntheticDelays", |
+ "type": "array", |
+ "items": { |
+ "type": "string" |
+ }, |
+ "optional": true, |
+ "description": "Configuration to synthesize the delays in tracing." |
+ }, |
+ { |
+ "name": "memoryDumpConfig", |
+ "$ref": "MemoryDumpConfig", |
+ "optional": true, |
+ "description": "Configuration for memory dump triggers. Used only when \"memory-infra\" category is enabled." |
+ } |
+ ] |
+ } |
+ ], |
+ "commands": [ |
+ { |
+ "name": "start", |
+ "async": true, |
+ "description": "Start trace events collection.", |
+ "parameters": [ |
+ { |
+ "name": "categories", |
+ "type": "string", |
+ "optional": true, |
+ "deprecated": true, |
+ "description": "Category/tag filter" |
+ }, |
+ { |
+ "name": "options", |
+ "type": "string", |
+ "optional": true, |
+ "deprecated": true, |
+ "description": "Tracing options" |
+ }, |
+ { |
+ "name": "bufferUsageReportingInterval", |
+ "type": "number", |
+ "optional": true, |
+ "description": "If set, the agent will issue bufferUsage events at this interval, specified in milliseconds" |
+ }, |
+ { |
+ "name": "transferMode", |
+ "type": "string", |
+ "enum": [ |
+ "ReportEvents", |
+ "ReturnAsStream" |
+ ], |
+ "optional": true, |
+ "description": "Whether to report trace events as series of dataCollected events or to save trace to a stream (defaults to <code>ReportEvents</code>)." |
+ }, |
+ { |
+ "name": "traceConfig", |
+ "$ref": "TraceConfig", |
+ "optional": true, |
+ "description": "" |
+ } |
+ ], |
+ "handlers": [ |
+ "browser", |
+ "renderer" |
+ ] |
+ }, |
+ { |
+ "name": "end", |
+ "async": true, |
+ "description": "Stop trace events collection.", |
+ "handlers": [ |
+ "browser", |
+ "renderer" |
+ ] |
+ }, |
+ { |
+ "name": "getCategories", |
+ "async": true, |
+ "description": "Gets supported tracing categories.", |
+ "returns": [ |
+ { |
+ "name": "categories", |
+ "type": "array", |
+ "items": { |
+ "type": "string" |
+ }, |
+ "description": "A list of supported tracing categories." |
+ } |
+ ], |
+ "handlers": [ |
+ "browser" |
+ ] |
+ }, |
+ { |
+ "name": "requestMemoryDump", |
+ "async": true, |
+ "description": "Request a global memory dump.", |
+ "returns": [ |
+ { |
+ "name": "dumpGuid", |
+ "type": "string", |
+ "description": "GUID of the resulting global memory dump." |
+ }, |
+ { |
+ "name": "success", |
+ "type": "boolean", |
+ "description": "True iff the global memory dump succeeded." |
+ } |
+ ], |
+ "handlers": [ |
+ "browser" |
+ ] |
+ }, |
+ { |
+ "name": "recordClockSyncMarker", |
+ "description": "Record a clock sync marker in the trace.", |
+ "parameters": [ |
+ { |
+ "name": "syncId", |
+ "type": "string", |
+ "description": "The ID of this clock sync marker" |
+ } |
+ ], |
+ "handlers": [ |
+ "browser" |
+ ] |
+ } |
+ ], |
+ "events": [ |
+ { |
+ "name": "dataCollected", |
+ "parameters": [ |
+ { |
+ "name": "value", |
+ "type": "array", |
+ "items": { |
+ "type": "object" |
+ } |
+ } |
+ ], |
+ "description": "Contains an bucket of collected trace events. When tracing is stopped collected events will be send as a sequence of dataCollected events followed by tracingComplete event.", |
+ "handlers": [ |
+ "browser" |
+ ] |
+ }, |
+ { |
+ "name": "tracingComplete", |
+ "description": "Signals that tracing is stopped and there is no trace buffers pending flush, all data were delivered via dataCollected events.", |
+ "parameters": [ |
+ { |
+ "name": "stream", |
+ "$ref": "IO.StreamHandle", |
+ "optional": true, |
+ "description": "A handle of the stream that holds resulting trace data." |
+ } |
+ ], |
+ "handlers": [ |
+ "browser" |
+ ] |
+ }, |
+ { |
+ "name": "bufferUsage", |
+ "parameters": [ |
+ { |
+ "name": "percentFull", |
+ "type": "number", |
+ "optional": true, |
+ "description": "A number in range [0..1] that indicates the used size of event buffer as a fraction of its total size." |
+ }, |
+ { |
+ "name": "eventCount", |
+ "type": "number", |
+ "optional": true, |
+ "description": "An approximate number of events in the trace log." |
+ }, |
+ { |
+ "name": "value", |
+ "type": "number", |
+ "optional": true, |
+ "description": "A number in range [0..1] that indicates the used size of event buffer as a fraction of its total size." |
+ } |
+ ], |
+ "handlers": [ |
+ "browser" |
+ ] |
+ } |
+ ] |
+} |