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

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: review fix 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
« no previous file with comments | « third_party/WebKit/Source/core/inspector/InspectorTracingAgent.cpp ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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",
pfeldman 2016/03/15 18:03:53 Inline enum, call property "bufferType".
Zhen Wang 2016/03/17 03:58:14 Done.
4830 "type": "string",
4831 "enum": ["recordUntilFull", "recordContinuously", "recordAsMuchA sPossible", "echoToConsole"],
4832 "description": "Option that determines how the trace buffer stor es data."
4833 },
4834 {
4835 "id": "MemoryDumpTriggerMode",
pfeldman 2016/03/15 18:03:53 Inline enum.
Zhen Wang 2016/03/17 03:58:14 Done.
4836 "type": "string",
4837 "enum": ["light", "detailed"],
4838 "description": "Level of detail of the triggered memory dumps."
4839 },
4840 {
4841 "id": "MemoryDumpTrigger",
4842 "type": "object",
4843 "properties": [
4844 { "name": "mode", "$ref": "MemoryDumpTriggerMode", "optional ": false, "description": "Level of detail of the triggered memory dumps." },
pfeldman 2016/03/15 18:03:53 remove "optional": false.
Zhen Wang 2016/03/17 03:58:15 Done.
4845 { "name": "periodicIntervalMs", "type": "integer", "optional ": false, "description": "Length of the periodic intervals between the triggered memory dumps." }
pfeldman 2016/03/15 18:03:53 Everything is ms, this could be called "interval".
pfeldman 2016/03/15 18:03:53 ditto
4846 ],
4847 "description": "Memory dump trigger configuration."
4848 },
4849 {
4850 "id": "MemoryDumpConfig",
4851 "type": "object",
4852 "properties": [
4853 { "name": "triggers", "type": "array", "items": { "$ref": "M emoryDumpTrigger" }, "optional": false, "description": "Memory dump trigger conf iguration." }
pfeldman 2016/03/15 18:03:53 So we have an array of triggers, but they only car
Zhen Wang 2016/03/17 03:58:15 Currently there are only two items by default. I t
4854 ],
4855 "description": "Configuration for memory dump triggers. Used onl y when \"memory-infra\" category is enabled."
4856 },
4857 {
4858 "id": "TraceConfig",
4859 "type": "object",
4860 "properties": [
4861 { "name": "recordMode", "$ref": "RecordMode", "optional": tr ue, "description": "Controls how the trace buffer stores data." },
pfeldman 2016/03/15 18:03:53 bufferType ?
4862 { "name": "enableSampling", "type": "boolean", "optional": t rue, "description": "Turns on JavaScript stack sampling." },
pfeldman 2016/03/15 18:03:53 Should we get an array of "features" you'd like en
4863 { "name": "enableSystrace", "type": "boolean", "optional": t rue, "description": "Turns on system tracing." },
4864 { "name": "enableArgumentFilter", "type": "boolean", "option al": true, "description": "Turns on argument filter." },
4865 { "name": "includedCategories", "type": "array", "items": { "type": "string" }, "optional": true, "description": "Included category filters. " },
pfeldman 2016/03/15 18:03:53 "include" and "exclude" ?
4866 { "name": "excludedCategories", "type": "array", "items": { "type": "string" }, "optional": true, "description": "Excluded category filters. " },
4867 { "name": "syntheticDelays", "type": "array", "items": { "ty pe": "string" }, "optional": true, "description": "Configuration to synthesize t he delays in tracing." },
pfeldman 2016/03/15 18:03:53 What does this do? Can it be computed on the clien
Zhen Wang 2016/03/17 03:58:15 This simulates additional delays in the browser fo
4868 { "name": "memoryDumpConfig", "$ref": "MemoryDumpConfig", "o ptional": true, "description": "Configuration for memory dump triggers. Used onl y when \"memory-infra\" category is enabled." }
pfeldman 2016/03/15 18:03:53 memory.
4869 ]
4870 }
4871 ],
4827 "commands": [ 4872 "commands": [
4828 { 4873 {
4829 "name": "start", 4874 "name": "start",
4830 "async": true, 4875 "async": true,
4831 "description": "Start trace events collection.", 4876 "description": "Start trace events collection.",
4832 "parameters": [ 4877 "parameters": [
4833 { "name": "categories", "type": "string", "optional": true, "description": "Category/tag filter" }, 4878 { "name": "categories", "type": "string", "optional": true, "deprecated": true, "description": "Category/tag filter" },
4834 { "name": "options", "type": "string", "optional": true, "de scription": "Tracing options" }, 4879 { "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" }, 4880 { "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>)." } 4881 { "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>)." },
4882 { "name": "traceConfig", "$ref": "TraceConfig", "optional": true, "description": "" }
4837 ], 4883 ],
4838 "handlers": ["browser", "renderer"] 4884 "handlers": ["browser", "renderer"]
4839 }, 4885 },
4840 { 4886 {
4841 "name": "end", 4887 "name": "end",
4842 "async": true, 4888 "async": true,
4843 "description": "Stop trace events collection.", 4889 "description": "Stop trace events collection.",
4844 "handlers": ["browser", "renderer"] 4890 "handlers": ["browser", "renderer"]
4845 }, 4891 },
4846 { 4892 {
(...skipping 337 matching lines...) Expand 10 before | Expand all | Expand 10 after
5184 ], 5230 ],
5185 "returns": [ 5231 "returns": [
5186 { "name": "accessibilityNode", "$ref": "AXNode", "descriptio n": "The <code>Accessibility.AXNode</code> for this DOM node, if it exists.", "o ptional": true } 5232 { "name": "accessibilityNode", "$ref": "AXNode", "descriptio n": "The <code>Accessibility.AXNode</code> for this DOM node, if it exists.", "o ptional": true }
5187 ], 5233 ],
5188 "description": "Fetches the accessibility node for this DOM node , if it exists.", 5234 "description": "Fetches the accessibility node for this DOM node , if it exists.",
5189 "hidden": true 5235 "hidden": true
5190 } 5236 }
5191 ] 5237 ]
5192 }] 5238 }]
5193 } 5239 }
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/inspector/InspectorTracingAgent.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698