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

Side by Side Diff: third_party/WebKit/Source/platform/v8_inspector/protocol/Profiler.json

Issue 2035653005: DevTools: split protocol.json into files per domain. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 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
OLDNEW
(Empty)
1 {
2 "domain": "Profiler",
3 "version": {
4 "major": "1",
5 "minor": "1"
6 },
7 "dependencies": [
8 "Runtime",
9 "Debugger"
10 ],
11 "hidden": true,
12 "types": [
13 {
14 "id": "CPUProfileNode",
15 "type": "object",
16 "description": "CPU Profile node. Holds callsite information, execut ion statistics and child nodes.",
17 "properties": [
18 {
19 "name": "functionName",
20 "type": "string",
21 "description": "Function name."
22 },
23 {
24 "name": "scriptId",
25 "$ref": "Runtime.ScriptId",
26 "description": "Script identifier."
27 },
28 {
29 "name": "url",
30 "type": "string",
31 "description": "URL."
32 },
33 {
34 "name": "lineNumber",
35 "type": "integer",
36 "description": "1-based line number of the function start po sition."
37 },
38 {
39 "name": "columnNumber",
40 "type": "integer",
41 "description": "1-based column number of the function start position."
42 },
43 {
44 "name": "hitCount",
45 "type": "integer",
46 "description": "Number of samples where this node was on top of the call stack."
47 },
48 {
49 "name": "callUID",
50 "type": "number",
51 "description": "Call UID."
52 },
53 {
54 "name": "children",
55 "type": "array",
56 "items": {
57 "$ref": "CPUProfileNode"
58 },
59 "description": "Child nodes."
60 },
61 {
62 "name": "deoptReason",
63 "type": "string",
64 "description": "The reason of being not optimized. The funct ion may be deoptimized or marked as don't optimize."
65 },
66 {
67 "name": "id",
68 "type": "integer",
69 "description": "Unique id of the node."
70 },
71 {
72 "name": "positionTicks",
73 "type": "array",
74 "items": {
75 "$ref": "PositionTickInfo"
76 },
77 "description": "An array of source position ticks."
78 }
79 ]
80 },
81 {
82 "id": "CPUProfile",
83 "type": "object",
84 "description": "Profile.",
85 "properties": [
86 {
87 "name": "head",
88 "$ref": "CPUProfileNode"
89 },
90 {
91 "name": "startTime",
92 "type": "number",
93 "description": "Profiling start time in seconds."
94 },
95 {
96 "name": "endTime",
97 "type": "number",
98 "description": "Profiling end time in seconds."
99 },
100 {
101 "name": "samples",
102 "optional": true,
103 "type": "array",
104 "items": {
105 "type": "integer"
106 },
107 "description": "Ids of samples top nodes."
108 },
109 {
110 "name": "timestamps",
111 "optional": true,
112 "type": "array",
113 "items": {
114 "type": "number"
115 },
116 "description": "Timestamps of the samples in microseconds."
117 }
118 ]
119 },
120 {
121 "id": "PositionTickInfo",
122 "type": "object",
123 "description": "Specifies a number of samples attributed to a certai n source position.",
124 "properties": [
125 {
126 "name": "line",
127 "type": "integer",
128 "description": "Source line number (1-based)."
129 },
130 {
131 "name": "ticks",
132 "type": "integer",
133 "description": "Number of samples attributed to the source l ine."
134 }
135 ]
136 }
137 ],
138 "commands": [
139 {
140 "name": "enable"
141 },
142 {
143 "name": "disable"
144 },
145 {
146 "name": "setSamplingInterval",
147 "parameters": [
148 {
149 "name": "interval",
150 "type": "integer",
151 "description": "New sampling interval in microseconds."
152 }
153 ],
154 "description": "Changes CPU profiler sampling interval. Must be call ed before CPU profiles recording started."
155 },
156 {
157 "name": "start"
158 },
159 {
160 "name": "stop",
161 "returns": [
162 {
163 "name": "profile",
164 "$ref": "CPUProfile",
165 "description": "Recorded profile."
166 }
167 ]
168 }
169 ],
170 "events": [
171 {
172 "name": "consoleProfileStarted",
173 "parameters": [
174 {
175 "name": "id",
176 "type": "string"
177 },
178 {
179 "name": "location",
180 "$ref": "Debugger.Location",
181 "description": "Location of console.profile()."
182 },
183 {
184 "name": "title",
185 "type": "string",
186 "optional": true,
187 "description": "Profile title passed as argument to console. profile()."
188 }
189 ],
190 "description": "Sent when new profile recodring is started using con sole.profile() call."
191 },
192 {
193 "name": "consoleProfileFinished",
194 "parameters": [
195 {
196 "name": "id",
197 "type": "string"
198 },
199 {
200 "name": "location",
201 "$ref": "Debugger.Location",
202 "description": "Location of console.profileEnd()."
203 },
204 {
205 "name": "profile",
206 "$ref": "CPUProfile"
207 },
208 {
209 "name": "title",
210 "type": "string",
211 "optional": true,
212 "description": "Profile title passed as argunet to console.p rofile()."
213 }
214 ]
215 }
216 ]
217 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698