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

Unified Diff: third_party/WebKit/Source/core/inspector/protocol/Tracing.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/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"
+ ]
+ }
+ ]
+}

Powered by Google App Engine
This is Rietveld 408576698