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

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": "The option that determines how the trace buffer stores data."
petrcermak 2016/03/14 18:05:09 nit: I do NOT think the descriptions should start
Zhen Wang 2016/03/14 21:41:46 Done.
4833 },
4834 {
4835 "id": "MemoryDumpTrigger",
4836 "type": "object",
4837 "properties": [
4838 { "name": "mode", "type": "string", "optional": false, "desc ription": "" },
petrcermak 2016/03/14 18:05:09 Shouldn't we have an enum for this? How else will
Zhen Wang 2016/03/14 21:41:46 Updated this to an enum.
4839 { "name": "periodicIntervalMs", "type": "integer", "optional ": false, "description": "" }
petrcermak 2016/03/14 18:05:09 I think you should provide an actual description.
Zhen Wang 2016/03/14 21:41:45 How about the new one?
4840 ],
4841 "description": "The configurations that trigger memory dump."
petrcermak 2016/03/14 18:05:09 ditto drop "The"
Zhen Wang 2016/03/14 21:41:46 Done.
4842 },
4843 {
4844 "id": "MemoryDumpConfig",
4845 "type": "object",
4846 "properties": [
4847 { "name": "triggers", "type": "array", "items": { "$ref": "M emoryDumpTrigger" }, "optional": false, "description": "The configurations that trigger memory dump." }
4848 ],
4849 "description": "The configuration for memory dump. Used only whe n \"memory-infra\" category is enabled."
petrcermak 2016/03/14 18:05:09 ditto drop "The"
Zhen Wang 2016/03/14 21:41:45 Done.
4850 },
4851 {
4852 "id": "TraceConfig",
4853 "type": "object",
4854 "properties": [
4855 { "name": "recordMode", "$ref": "RecordMode", "optional": tr ue, "description": "Controls how the trace buffer stores data." },
4856 { "name": "enableSampling", "type": "boolean", "optional": t rue, "description": "Turns on JavaScript stack sampling." },
4857 { "name": "enableSystrace", "type": "boolean", "optional": t rue, "description": "Turns on system tracing." },
4858 { "name": "enableArgumentFilter", "type": "boolean", "option al": true, "description": "Turns on argument filter." },
4859 { "name": "includedCategories", "type": "array", "items": { "type": "string" }, "optional": true, "description": "The category filters that are included." },
petrcermak 2016/03/14 18:05:09 ditto drop "The"
Zhen Wang 2016/03/14 21:41:45 Done.
4860 { "name": "excludedCategories", "type": "array", "items": { "type": "string" }, "optional": true, "description": "The category filters that are excluded." },
petrcermak 2016/03/14 18:05:09 ditto drop "The"
Zhen Wang 2016/03/14 21:41:46 Done.
4861 { "name": "syntheticDelays", "type": "array", "items": { "ty pe": "string" }, "optional": true, "description": "The configuration to synthesi ze the delays in tracing." },
petrcermak 2016/03/14 18:05:09 Shouldn't this be an enum??
petrcermak 2016/03/14 18:05:09 ditto drop "The"
Zhen Wang 2016/03/14 21:41:45 No. I think this is different. Synthetic delays ar
4862 { "name": "memoryDumpConfig", "$ref": "MemoryDumpConfig", "o ptional": true, "description": "The configuration for memory dump. Used only whe n \"memory-infra\" category is enabled." }
petrcermak 2016/03/14 18:05:09 ditto drop "The"
Zhen Wang 2016/03/14 21:41:46 Done.
4863 ]
4864 }
4865 ],
4827 "commands": [ 4866 "commands": [
4828 { 4867 {
4829 "name": "start", 4868 "name": "start",
4830 "async": true, 4869 "async": true,
4831 "description": "Start trace events collection.", 4870 "description": "Start trace events collection.",
4832 "parameters": [ 4871 "parameters": [
4833 { "name": "categories", "type": "string", "optional": true, "description": "Category/tag filter" }, 4872 { "name": "categories", "type": "string", "optional": true, "deprecated": true, "description": "Category/tag filter" },
4834 { "name": "options", "type": "string", "optional": true, "de scription": "Tracing options" }, 4873 { "name": "options", "type": "string", "optional": true, "de precated": true, "description": "Tracing options" },
4835 { "name": "bufferUsageReportingInterval", "type": "number", "optional": true, "description": "If set, the agent will issue bufferUsage event s at this interval, specified in milliseconds" }, 4874 { "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>)." } 4875 { "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>)." },
4876 { "name": "traceConfig", "$ref": "TraceConfig", "optional": true, "description": "" }
4837 ], 4877 ],
4838 "handlers": ["browser", "renderer"] 4878 "handlers": ["browser", "renderer"]
4839 }, 4879 },
4840 { 4880 {
4841 "name": "end", 4881 "name": "end",
4842 "async": true, 4882 "async": true,
4843 "description": "Stop trace events collection.", 4883 "description": "Stop trace events collection.",
4844 "handlers": ["browser", "renderer"] 4884 "handlers": ["browser", "renderer"]
4845 }, 4885 },
4846 { 4886 {
(...skipping 337 matching lines...) Expand 10 before | Expand all | Expand 10 after
5184 ], 5224 ],
5185 "returns": [ 5225 "returns": [
5186 { "name": "accessibilityNode", "$ref": "AXNode", "descriptio n": "The <code>Accessibility.AXNode</code> for this DOM node, if it exists.", "o ptional": true } 5226 { "name": "accessibilityNode", "$ref": "AXNode", "descriptio n": "The <code>Accessibility.AXNode</code> for this DOM node, if it exists.", "o ptional": true }
5187 ], 5227 ],
5188 "description": "Fetches the accessibility node for this DOM node , if it exists.", 5228 "description": "Fetches the accessibility node for this DOM node , if it exists.",
5189 "hidden": true 5229 "hidden": true
5190 } 5230 }
5191 ] 5231 ]
5192 }] 5232 }]
5193 } 5233 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698