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

Side by Side 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, 9 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 unified diff | Download patch
OLDNEW
1 { 1 {
2 "version": { "major": "1", "minor": "1" }, 2 "version": { "major": "1", "minor": "1" },
3 "domains": [{ 3 "domains": [{
4 "domain": "Inspector", 4 "domain": "Inspector",
5 "hidden": true, 5 "hidden": true,
6 "types": [], 6 "types": [],
7 "commands": [ 7 "commands": [
8 { 8 {
9 "name": "enable", 9 "name": "enable",
10 "description": "Enables inspector domain notifications.", 10 "description": "Enables inspector domain notifications.",
(...skipping 4806 matching lines...) Expand 10 before | Expand all | Expand 10 after
4817 ] 4817 ]
4818 }, 4818 },
4819 { 4819 {
4820 "name": "clearDeviceOrientationOverride", 4820 "name": "clearDeviceOrientationOverride",
4821 "description": "Clears the overridden Device Orientation." 4821 "description": "Clears the overridden Device Orientation."
4822 } 4822 }
4823 ] 4823 ]
4824 }, 4824 },
4825 { 4825 {
4826 "domain": "Tracing", 4826 "domain": "Tracing",
4827 "types": [
4828 {
4829 "id": "RecordMode",
4830 "type": "string",
4831 "enum": ["recordUntilFull", "recordContinuously", "recordAsMuchA sPossible", "echoToConsole"],
4832 "description": ""
caseq 2016/03/05 02:25:24 Here and below -- please add descriptions.
4833 },
4834 {
4835 "id": "MemoryDumpTrigger",
4836 "type": "object",
4837 "properties": [
4838 { "name": "mode", "type": "string", "optional": false, "desc ription": "" },
4839 { "name": "periodicIntervalMs", "type": "integer", "optional ": false, "description": "" }
4840 ]
4841 },
4842 {
4843 "id": "MemoryDumpConfig",
4844 "type": "object",
4845 "properties": [
4846 { "name": "triggers", "type": "array", "items": { "$ref": "T racing.MemoryDumpTrigger" }, "optional": false, "description": "" }
4847 ]
4848 },
4849 {
4850 "id": "TraceConfig",
4851 "type": "object",
4852 "properties": [
4853 { "name": "recordMode", "$ref": "Tracing.RecordMode", "optio nal": true, "description": "" },
4854 { "name": "enableSampling", "type": "boolean", "optional": t rue, "description": "" },
4855 { "name": "enableSystrace", "type": "boolean", "optional": t rue, "description": "" },
4856 { "name": "enableArgumentFilter", "type": "boolean", "option al": true, "description": "" },
4857 { "name": "includedCategories", "type": "array", "items": { "type": "string" }, "optional": true, "description": "" },
4858 { "name": "excludedCategories", "type": "array", "items": { "type": "string" }, "optional": true, "description": "" },
4859 { "name": "syntheticDelays", "type": "array", "items": { "ty pe": "string" }, "optional": true, "description": "" },
4860 { "name": "memoryDumpConfig", "$ref": "Tracing.MemoryDumpCon fig", "optional": true, "description": "" }
4861 ]
4862 }
4863 ],
4827 "commands": [ 4864 "commands": [
4828 { 4865 {
4829 "name": "start", 4866 "name": "start",
4830 "async": true, 4867 "async": true,
4831 "description": "Start trace events collection.", 4868 "description": "Start trace events collection.",
4832 "parameters": [ 4869 "parameters": [
4833 { "name": "categories", "type": "string", "optional": true, "description": "Category/tag filter" }, 4870 { "name": "categories", "type": "string", "optional": true, "description": "Category/tag filter" },
caseq 2016/03/05 02:25:24 deprecated: true?
4834 { "name": "options", "type": "string", "optional": true, "de scription": "Tracing options" }, 4871 { "name": "options", "type": "string", "optional": true, "de scription": "Tracing options" },
caseq 2016/03/05 02:25:24 ditto.
4835 { "name": "bufferUsageReportingInterval", "type": "number", "optional": true, "description": "If set, the agent will issue bufferUsage event s at this interval, specified in milliseconds" }, 4872 { "name": "bufferUsageReportingInterval", "type": "number", "optional": true, "description": "If set, the agent will issue bufferUsage event s at this interval, specified in milliseconds" },
4836 { "name": "transferMode", "type": "string", "enum": ["Report Events", "ReturnAsStream"], "optional": true, "description": "Whether to report trace events as series of dataCollected events or to save trace to a stream (def aults to <code>ReportEvents</code>)." } 4873 { "name": "transferMode", "type": "string", "enum": ["Report Events", "ReturnAsStream"], "optional": true, "description": "Whether to report trace events as series of dataCollected events or to save trace to a stream (def aults to <code>ReportEvents</code>)." },
4874 { "name": "traceConfig", "$ref": "Tracing.TraceConfig", "opt ional": true, "description": "" }
4837 ], 4875 ],
4838 "handlers": ["browser", "renderer"] 4876 "handlers": ["browser", "renderer"]
4839 }, 4877 },
4840 { 4878 {
4841 "name": "end", 4879 "name": "end",
4842 "async": true, 4880 "async": true,
4843 "description": "Stop trace events collection.", 4881 "description": "Stop trace events collection.",
4844 "handlers": ["browser", "renderer"] 4882 "handlers": ["browser", "renderer"]
4845 }, 4883 },
4846 { 4884 {
(...skipping 337 matching lines...) Expand 10 before | Expand all | Expand 10 after
5184 ], 5222 ],
5185 "returns": [ 5223 "returns": [
5186 { "name": "accessibilityNode", "$ref": "AXNode", "descriptio n": "The <code>Accessibility.AXNode</code> for this DOM node, if it exists.", "o ptional": true } 5224 { "name": "accessibilityNode", "$ref": "AXNode", "descriptio n": "The <code>Accessibility.AXNode</code> for this DOM node, if it exists.", "o ptional": true }
5187 ], 5225 ],
5188 "description": "Fetches the accessibility node for this DOM node , if it exists.", 5226 "description": "Fetches the accessibility node for this DOM node , if it exists.",
5189 "hidden": true 5227 "hidden": true
5190 } 5228 }
5191 ] 5229 ]
5192 }] 5230 }]
5193 } 5231 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698