Web Inspector: remove unused metrics and commands from the Timeline agent
[WebKit-https.git] / Source / WebCore / inspector / protocol / Timeline.json
1 {
2     "domain": "Timeline",
3     "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.",
4     "types": [
5         {
6             "id": "EventType",
7             "type": "string",
8             "enum": ["EventDispatch", "ScheduleStyleRecalculation", "RecalculateStyles", "InvalidateLayout", "Layout", "Paint", "ScrollLayer", "ResizeImage", "ParseHTML", "TimerInstall", "TimerRemove", "TimerFire", "EvaluateScript", "MarkLoad", "MarkDOMContent", "TimeStamp", "Time", "TimeEnd", "ScheduleResourceRequest", "ResourceSendRequest", "ResourceReceiveResponse", "ResourceReceivedData", "ResourceFinish", "XHRReadyStateChange", "XHRLoad", "FunctionCall", "ProbeSample", "GCEvent", "RequestAnimationFrame", "CancelAnimationFrame", "FireAnimationFrame", "WebSocketCreate", "WebSocketSendHandshakeRequest", "WebSocketReceiveHandshakeResponse", "WebSocketDestroy"],
9             "description": "Timeline record type."
10         },
11         {
12             "id": "TimelineEvent",
13             "type": "object",
14             "properties": [
15                 { "name": "type", "$ref": "EventType", "description": "Event type." },
16                 { "name": "data", "type": "object", "description": "Event data." },
17                 { "name": "children", "type": "array", "optional": true, "items": { "$ref": "TimelineEvent" }, "description": "Nested records." }
18             ],
19             "description": "Timeline record contains information about the recorded activity."
20         }
21     ],
22     "commands": [
23         {
24             "name": "start",
25             "parameters": [
26                 { "name": "maxCallStackDepth", "optional": true, "type": "integer", "description": "Samples JavaScript stack traces up to <code>maxCallStackDepth</code>, defaults to 5." }
27             ],
28             "description": "Starts capturing instrumentation events."
29         },
30         {
31             "name": "stop",
32             "description": "Stops capturing instrumentation events."
33         }
34     ],
35     "events": [
36         {
37             "name": "eventRecorded",
38             "parameters": [
39                 { "name": "record", "$ref": "TimelineEvent", "description": "Timeline event record data." }
40             ],
41             "description": "Fired for every instrumentation event while timeline is started."
42         }
43     ]
44 }