forked from qt/qtwebkit
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathTimeline.json
More file actions
115 lines (115 loc) · 5.17 KB
/
Copy pathTimeline.json
File metadata and controls
115 lines (115 loc) · 5.17 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
{
"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.",
"availability": "web",
"types": [
{
"id": "EventType",
"type": "string",
"enum": [
"EventDispatch",
"ScheduleStyleRecalculation",
"RecalculateStyles",
"InvalidateLayout",
"Layout",
"Paint",
"Composite",
"RenderingFrame",
"TimerInstall",
"TimerRemove",
"TimerFire",
"EvaluateScript",
"TimeStamp",
"Time",
"TimeEnd",
"FunctionCall",
"ProbeSample",
"ConsoleProfile",
"RequestAnimationFrame",
"CancelAnimationFrame",
"FireAnimationFrame"
],
"description": "Timeline record type."
},
{
"id": "TimelineEvent",
"type": "object",
"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." }
],
"description": "Timeline record contains information about the recorded activity."
},
{
"id": "CPUProfileNodeAggregateCallInfo",
"type": "object",
"description": "Aggregate CPU Profile call info. Holds time information for all the calls that happened on a node.",
"properties": [
{ "name": "callCount", "type": "number", "description": "Total number of calls." },
{ "name": "startTime", "type": "number", "description": "Start time for the first call." },
{ "name": "endTime", "type": "number", "description": "End time for the last call." },
{ "name": "totalTime", "type": "number", "description": "Total execution time for all calls combined." }
]
},
{
"id": "CPUProfileNode",
"type": "object",
"description": "CPU Profile node. Holds callsite information, execution statistics and child nodes.",
"properties": [
{ "name": "id", "type": "integer", "description": "Unique identifier for this call site." },
{ "name": "callInfo", "$ref": "CPUProfileNodeAggregateCallInfo", "description": "Aggregate info about all the calls that making up this node." },
{ "name": "functionName", "type": "string", "optional": true, "description": "Function name." },
{ "name": "url", "type": "string", "optional": true, "description": "URL." },
{ "name": "lineNumber", "type": "integer", "optional": true, "description": "Line number." },
{ "name": "columnNumber", "type": "integer", "optional": true, "description": "Column number." },
{ "name": "children", "type": "array", "items": { "$ref": "CPUProfileNode" }, "optional": true, "description": "Child nodes." }
]
},
{
"id": "CPUProfile",
"type": "object",
"description": "Profile.",
"properties": [
{ "name": "rootNodes", "type": "array", "items": { "$ref": "CPUProfileNode" }, "description": "Top level nodes in the stack." },
{ "name": "idleTime", "type": "number", "optional": true }
]
}
],
"commands": [
{
"name": "start",
"parameters": [
{ "name": "maxCallStackDepth", "optional": true, "type": "integer", "description": "Samples JavaScript stack traces up to <code>maxCallStackDepth</code>, defaults to 5." }
],
"description": "Starts capturing instrumentation events."
},
{
"name": "stop",
"description": "Stops capturing instrumentation events."
}
],
"events": [
{
"name": "eventRecorded",
"parameters": [
{ "name": "record", "$ref": "TimelineEvent", "description": "Timeline event record data." }
],
"description": "Fired for every instrumentation event while timeline is started."
},
{
"name": "recordingStarted",
"parameters": [
{ "name": "startTime", "type": "number", "description": "Start time of this new recording." }
],
"description": "Fired when recording has started."
},
{
"name": "recordingStopped",
"parameters": [
{ "name": "endTime", "type": "number", "description": "End time of this recording." }
],
"description": "Fired when recording has stopped."
}
]
}