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

Unified Diff: third_party/WebKit/Source/devtools/protocol.json

Issue 1765153002: Update DevTools Tracing.Start to accept trace config as a parameter (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 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/devtools/protocol.json
diff --git a/third_party/WebKit/Source/devtools/protocol.json b/third_party/WebKit/Source/devtools/protocol.json
index 8ca06b8440503febf231b190c57ba0883171813b..c3b1ae56a7921f4b38854a80001bfa27765e6e0b 100644
--- a/third_party/WebKit/Source/devtools/protocol.json
+++ b/third_party/WebKit/Source/devtools/protocol.json
@@ -4824,6 +4824,43 @@
},
{
"domain": "Tracing",
+ "types": [
+ {
+ "id": "RecordMode",
+ "type": "string",
+ "enum": ["recordUntilFull", "recordContinuously", "recordAsMuchAsPossible", "echoToConsole"],
+ "description": ""
caseq 2016/03/05 02:25:24 Here and below -- please add descriptions.
+ },
+ {
+ "id": "MemoryDumpTrigger",
+ "type": "object",
+ "properties": [
+ { "name": "mode", "type": "string", "optional": false, "description": "" },
+ { "name": "periodicIntervalMs", "type": "integer", "optional": false, "description": "" }
+ ]
+ },
+ {
+ "id": "MemoryDumpConfig",
+ "type": "object",
+ "properties": [
+ { "name": "triggers", "type": "array", "items": { "$ref": "Tracing.MemoryDumpTrigger" }, "optional": false, "description": "" }
+ ]
+ },
+ {
+ "id": "TraceConfig",
+ "type": "object",
+ "properties": [
+ { "name": "recordMode", "$ref": "Tracing.RecordMode", "optional": true, "description": "" },
+ { "name": "enableSampling", "type": "boolean", "optional": true, "description": "" },
+ { "name": "enableSystrace", "type": "boolean", "optional": true, "description": "" },
+ { "name": "enableArgumentFilter", "type": "boolean", "optional": true, "description": "" },
+ { "name": "includedCategories", "type": "array", "items": { "type": "string" }, "optional": true, "description": "" },
+ { "name": "excludedCategories", "type": "array", "items": { "type": "string" }, "optional": true, "description": "" },
+ { "name": "syntheticDelays", "type": "array", "items": { "type": "string" }, "optional": true, "description": "" },
+ { "name": "memoryDumpConfig", "$ref": "Tracing.MemoryDumpConfig", "optional": true, "description": "" }
+ ]
+ }
+ ],
"commands": [
{
"name": "start",
@@ -4833,7 +4870,8 @@
{ "name": "categories", "type": "string", "optional": true, "description": "Category/tag filter" },
caseq 2016/03/05 02:25:24 deprecated: true?
{ "name": "options", "type": "string", "optional": true, "description": "Tracing options" },
caseq 2016/03/05 02:25:24 ditto.
{ "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": "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": "Tracing.TraceConfig", "optional": true, "description": "" }
],
"handlers": ["browser", "renderer"]
},

Powered by Google App Engine
This is Rietveld 408576698