-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Expand file tree
/
Copy pathTimeline.json
More file actions
129 lines (129 loc) · 4.92 KB
/
Copy pathTimeline.json
File metadata and controls
129 lines (129 loc) · 4.92 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
{
"domain": "Timeline",
"description": "Timeline provides its clients with instrumentation records that are generated during the page runtime. Timeline instrumentation can be started and stopped using corresponding commands. While timeline is started, it is generating timeline event records.",
"debuggableTypes": ["web-page"],
"targetTypes": ["page", "worker"],
"types": [
{
"id": "EventType",
"type": "string",
"description": "Timeline record type.",
"enum": [
"EventDispatch",
"ScheduleStyleRecalculation",
"RecalculateStyles",
"InvalidateLayout",
"ScheduleLayout",
"Layout",
"Paint",
"Composite",
"RenderingFrame",
"TimerInstall",
"TimerRemove",
"TimerFire",
"EvaluateScript",
"TimeStamp",
"Time",
"TimeEnd",
"FunctionCall",
"ProbeSample",
"ConsoleProfile",
"RequestAnimationFrame",
"CancelAnimationFrame",
"FireAnimationFrame",
"ObserverCallback",
"FirstContentfulPaint",
"LargestContentfulPaint",
"Screenshot"
]
},
{
"id": "Instrument",
"type": "string",
"description": "Instrument types.",
"enum": [
"ScriptProfiler",
"Timeline",
"CPU",
"Memory",
"Heap",
"Animation",
"Screenshot"
]
},
{
"id": "TimelineEvent",
"type": "object",
"description": "Timeline record contains information about the recorded activity.",
"properties": [
{ "name": "type", "$ref": "EventType", "description": "Event type." },
{ "name": "data", "type": "object", "description": "Event data." },
{ "name": "children", "type": "array", "optional": true, "items": { "$ref": "TimelineEvent" }, "description": "Nested records." }
]
}
],
"commands": [
{
"name": "enable",
"description": "Enables Timeline domain events."
},
{
"name": "disable",
"description": "Disables Timeline domain events."
},
{
"name": "start",
"description": "Starts capturing instrumentation events.",
"parameters": [
{ "name": "maxCallStackDepth", "optional": true, "type": "integer", "description": "Samples JavaScript stack traces up to <code>maxCallStackDepth</code>, defaults to 5." }
]
},
{
"name": "stop",
"description": "Stops capturing instrumentation events."
},
{
"name": "setAutoCaptureEnabled",
"description": "Toggle auto capture state. If <code>true</code> the backend will disable breakpoints and start capturing on navigation. The backend will fire the <code>autoCaptureStarted</code> event when an auto capture starts. The frontend should stop the auto capture when appropriate and re-enable breakpoints.",
"targetTypes": ["page"],
"parameters": [
{ "name": "enabled", "type": "boolean", "description": "New auto capture state." }
]
},
{
"name": "setInstruments",
"description": "Instruments to enable when capture starts on the backend (e.g. auto capture or programmatic capture).",
"parameters": [
{ "name": "instruments", "type": "array", "items": { "$ref": "Instrument" }, "description": "Instruments to enable." }
]
}
],
"events": [
{
"name": "eventRecorded",
"description": "Fired for every instrumentation event while timeline is started.",
"parameters": [
{ "name": "record", "$ref": "TimelineEvent", "description": "Timeline event record data." }
]
},
{
"name": "recordingStarted",
"description": "Fired when recording has started.",
"parameters": [
{ "name": "startTime", "type": "number", "description": "Start time of this new recording." }
]
},
{
"name": "recordingStopped",
"description": "Fired when recording has stopped.",
"parameters": [
{ "name": "endTime", "type": "number", "description": "End time of this recording." }
]
},
{
"name": "autoCaptureStarted",
"description": "Fired when auto capture started.",
"targetTypes": ["page"]
}
]
}