OLD | NEW |
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 Loading... |
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 Loading... |
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 "returns": [ |
| 4027 { "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" } |
| 4028 ], |
| 4029 "handlers": ["browser", "renderer", "frontend"] |
4031 }, | 4030 }, |
4032 { | 4031 { |
4033 "name": "end", | 4032 "name": "end", |
4034 "description": "Stop trace events collection.", | 4033 "description": "Stop trace events collection.", |
4035 "handlers": ["browser", "frontend"] | 4034 "handlers": ["browser", "frontend"] |
| 4035 }, |
| 4036 { |
| 4037 "name": "enable", |
| 4038 "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."
, |
| 4039 "parameters": [ |
| 4040 { "name": "categories", "type": "string", "description": "Ca
tegory/tag filter used when tracing is enabled by the inspected page." } |
| 4041 ] |
| 4042 }, |
| 4043 { |
| 4044 "name": "disable", |
| 4045 "description": "Disable the agent to be started from the inspect
ed page, i.e. via a call to console.timeline()." |
4036 } | 4046 } |
4037 ], | 4047 ], |
4038 "events": [ | 4048 "events": [ |
4039 { | 4049 { |
| 4050 "name": "startedFromPage", |
| 4051 "parameters": [ |
| 4052 { "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" } |
| 4053 ], |
| 4054 "description": "Emitted when a page starts tracing using console
.timeline()" |
| 4055 }, |
| 4056 { |
4040 "name": "dataCollected", | 4057 "name": "dataCollected", |
4041 "parameters": [ | 4058 "parameters": [ |
4042 { "name": "value", "type": "array", "items": { "type": "obje
ct" } } | 4059 { "name": "value", "type": "array", "items": { "type": "obje
ct" } } |
4043 ], | 4060 ], |
| 4061 "description": "Contains an bucket of collected trace events.", |
4044 "handlers": ["browser", "frontend"] | 4062 "handlers": ["browser", "frontend"] |
4045 }, | 4063 }, |
4046 { | 4064 { |
4047 "name": "tracingComplete", | 4065 "name": "tracingComplete", |
| 4066 "description": "Signals that tracing is stopped and there is no
trace buffers pending flush, all data were delivered via dataCollected events.", |
4048 "handlers": ["browser", "frontend"] | 4067 "handlers": ["browser", "frontend"] |
4049 }, | 4068 }, |
4050 { | 4069 { |
4051 "name": "bufferUsage", | 4070 "name": "bufferUsage", |
4052 "parameters": [ | 4071 "parameters": [ |
4053 { "name": "value", "type": "number", "description": "A numbe
r in range [0..1] that indicates the used size of event buffer as a fraction of
its total size." } | 4072 { "name": "value", "type": "number", "description": "A numbe
r in range [0..1] that indicates the used size of event buffer as a fraction of
its total size." } |
4054 ], | 4073 ], |
4055 "handlers": ["browser", "frontend"] | 4074 "handlers": ["browser", "frontend"] |
4056 } | 4075 } |
4057 ] | 4076 ] |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4098 { | 4117 { |
4099 "name": "dataAvailable", | 4118 "name": "dataAvailable", |
4100 "parameters": [ | 4119 "parameters": [ |
4101 {"name": "value", "type": "array", "items": { "$ref": "Power
Event" }, "description": "List of power events." } | 4120 {"name": "value", "type": "array", "items": { "$ref": "Power
Event" }, "description": "List of power events." } |
4102 ], | 4121 ], |
4103 "handlers": ["browser", "frontend"] | 4122 "handlers": ["browser", "frontend"] |
4104 } | 4123 } |
4105 ] | 4124 ] |
4106 }] | 4125 }] |
4107 } | 4126 } |
OLD | NEW |