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

Side by Side Diff: Source/devtools/protocol.json

Issue 254613002: DevTools: add Tracing agent on back-end (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: removed obsolete code Created 6 years, 8 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 | Annotate | Revision Log
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 2744 matching lines...) Expand 10 before | Expand all | Expand 10 after
2755 { "name": "thread", "type": "string", "optional": true, "hid den": true, "description": "If present, identifies the thread that produced the event." }, 2755 { "name": "thread", "type": "string", "optional": true, "hid den": true, "description": "If present, identifies the thread that produced the event." },
2756 { "name": "stackTrace", "$ref": "Console.StackTrace", "optio nal": true, "hidden": true, "description": "Stack trace." }, 2756 { "name": "stackTrace", "$ref": "Console.StackTrace", "optio nal": true, "hidden": true, "description": "Stack trace." },
2757 { "name": "frameId", "type": "string", "optional": true, "hi dden": true, "description": "Unique identifier of the frame within the page that the event relates to." } 2757 { "name": "frameId", "type": "string", "optional": true, "hi dden": true, "description": "Unique identifier of the frame within the page that the event relates to." }
2758 ], 2758 ],
2759 "description": "Timeline record contains information about the r ecorded activity." 2759 "description": "Timeline record contains information about the r ecorded activity."
2760 } 2760 }
2761 ], 2761 ],
2762 "commands": [ 2762 "commands": [
2763 { 2763 {
2764 "name": "enable", 2764 "name": "enable",
2765 "description": "Enables timeline. After this call, timeline can be started from within the page (for example upon console.timeline).", 2765 "description": "Enables timeline. After this call, timeline can be started from within the page (for example upon console.timeline)."
2766 "parameters": [
2767 { "name": "traceEventCategoryFilter", "optional": true, "typ e": "string", "description": "If set, the timeline agent will automatically star t tracing with the specified category filter when timeline is started." }
2768 ]
2769 }, 2766 },
2770 { 2767 {
2771 "name": "disable", 2768 "name": "disable",
2772 "description": "Disables timeline." 2769 "description": "Disables timeline."
2773 }, 2770 },
2774 { 2771 {
2775 "name": "start", 2772 "name": "start",
2776 "parameters": [ 2773 "parameters": [
2777 { "name": "maxCallStackDepth", "optional": true, "type": "in teger", "description": "Samples JavaScript stack traces up to <code>maxCallStack Depth</code>, defaults to 5." }, 2774 { "name": "maxCallStackDepth", "optional": true, "type": "in teger", "description": "Samples JavaScript stack traces up to <code>maxCallStack Depth</code>, defaults to 5." },
2778 { "name": "bufferEvents", "optional": true, "type": "boolean ", "hidden": true, "description": "Whether instrumentation events should be buff ered and returned upon <code>stop</code> call." }, 2775 { "name": "bufferEvents", "optional": true, "type": "boolean ", "hidden": true, "description": "Whether instrumentation events should be buff ered and returned upon <code>stop</code> call." },
(...skipping 1235 matching lines...) Expand 10 before | Expand all | Expand 10 after
4014 } 4011 }
4015 ] 4012 ]
4016 }, 4013 },
4017 { 4014 {
4018 "domain": "Tracing", 4015 "domain": "Tracing",
4019 "hidden": true, 4016 "hidden": true,
4020 "commands": [ 4017 "commands": [
4021 { 4018 {
4022 "name": "start", 4019 "name": "start",
4023 "description": "Start trace events collection.", 4020 "description": "Start trace events collection.",
4024 "async": true,
4025 "parameters": [ 4021 "parameters": [
4026 { "name": "categories", "type": "string", "description": "Ca tegory/tag filter" }, 4022 { "name": "categories", "type": "string", "description": "Ca tegory/tag filter" },
4027 { "name": "options", "type": "string", "description": "Traci ng options" }, 4023 { "name": "options", "type": "string", "description": "Traci ng options" },
4028 { "name": "bufferUsageReportingInterval", "type": "number", "optional": true, "description": "If set, the agent will issue bufferUsage event s at this interval, specified in milliseconds" } 4024 { "name": "bufferUsageReportingInterval", "type": "number", "optional": true, "description": "If set, the agent will issue bufferUsage event s at this interval, specified in milliseconds" }
4029 ], 4025 ],
4030 "handlers": ["browser", "frontend"] 4026 "handlers": ["browser", "renderer", "frontend"]
4031 }, 4027 },
4032 { 4028 {
4033 "name": "end", 4029 "name": "end",
4034 "description": "Stop trace events collection.", 4030 "description": "Stop trace events collection.",
4035 "handlers": ["browser", "frontend"] 4031 "handlers": ["browser", "frontend"]
4032 },
4033 {
4034 "name": "enable",
4035 "description": "Enable the agent to be started from the inspecte d page, i.e. via a call to console.timeline(), and set default category filter." ,
4036 "parameters": [
4037 { "name": "categories", "type": "string", "description": "Ca tegory/tag filter used when tracing is enabled by the inspected page." }
yurys 2014/04/24 14:08:09 We already pass categories in Tracing.start why re
4038 ]
4039 },
4040 {
4041 "name": "disable",
4042 "description": "Disable the agent to be started from the inspect ed page, i.e. via a call to console.timeline()."
4036 } 4043 }
4037 ], 4044 ],
4038 "events": [ 4045 "events": [
4039 { 4046 {
4047 "name": "pageTracingStarted",
4048 "parameters": [
4049 { "name": "sessionId", "type": "string", "description": "A s ystem-unique identifier of the tracing session that allows associating of some o f the trace events with the inspected page" }
yurys 2014/04/24 14:08:09 Can we send it in response to Tracing.start instea
4050 ]
4051 },
4052 {
4040 "name": "dataCollected", 4053 "name": "dataCollected",
4041 "parameters": [ 4054 "parameters": [
4042 { "name": "value", "type": "array", "items": { "type": "obje ct" } } 4055 { "name": "value", "type": "array", "items": { "type": "obje ct" } }
4043 ], 4056 ],
4044 "handlers": ["browser", "frontend"] 4057 "handlers": ["browser", "frontend"]
4045 }, 4058 },
4046 { 4059 {
4047 "name": "tracingComplete", 4060 "name": "tracingComplete",
4048 "handlers": ["browser", "frontend"] 4061 "handlers": ["browser", "frontend"]
4049 }, 4062 },
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
4098 { 4111 {
4099 "name": "dataAvailable", 4112 "name": "dataAvailable",
4100 "parameters": [ 4113 "parameters": [
4101 {"name": "value", "type": "array", "items": { "$ref": "Power Event" }, "description": "List of power events." } 4114 {"name": "value", "type": "array", "items": { "$ref": "Power Event" }, "description": "List of power events." }
4102 ], 4115 ],
4103 "handlers": ["browser", "frontend"] 4116 "handlers": ["browser", "frontend"]
4104 } 4117 }
4105 ] 4118 ]
4106 }] 4119 }]
4107 } 4120 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698