Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / inspector / tracing / timeline-js-samping-tracing.html
blobce7f5513ecd6d49ea8957b8dc1f4cc1a7f946bdc
1 <html>
2 <head>
3 <script src="../../http/tests/inspector/inspector-test.js"></script>
4 <script src="../tracing-test.js"></script>
5 <script>
6 function test()
8 var sessionId = "6.23";
9 var rawTraceEvents = [
11 "args": {
12 "name": "Renderer"
14 "cat": "__metadata",
15 "name": "process_name",
16 "ph": "M",
17 "pid": 17851,
18 "tid": 23,
19 "ts": 0
22 "args": {
23 "name": "CrRendererMain"
25 "cat": "__metadata",
26 "name": "thread_name",
27 "ph": "M",
28 "pid": 17851,
29 "tid": 23,
30 "ts": 0
33 "args": {
34 "sessionId": sessionId
36 "cat": "disabled-by-default-devtools.timeline",
37 "name": "TracingStartedInPage",
38 "ph": "I",
39 "pid": 17851,
40 "tid": 23,
41 "ts": 100000,
42 "tts": 606543
45 "args": {
46 "data": {
47 "code_start": "0xa000",
48 "code_len": 100,
49 "name": "LazyCompile:~a file:///script1.js:12",
50 "script_id": 1
53 "cat": "disabled-by-default-v8.cpu_profile",
54 "name": "JitCodeAdded",
55 "ph": "I",
56 "pid": 17851,
57 "tid": 23,
58 "ts": 190000,
59 "tts": 5610000
62 "args": {
63 "data": {
64 "code_start": "0xb000",
65 "code_len": 100,
66 "name": "LazyCompile:~b file:///script1.js:12",
67 "script_id": 1
70 "cat": "disabled-by-default-v8.cpu_profile",
71 "name": "JitCodeAdded",
72 "ph": "I",
73 "pid": 17851,
74 "tid": 23,
75 "ts": 190000,
76 "tts": 5610000
79 "args": {
80 "data": {
81 "code_start": "0xc000",
82 "code_len": 100,
83 "name": "LazyCompile:~c file:///script1.js:12",
84 "script_id": 1
87 "cat": "disabled-by-default-v8.cpu_profile",
88 "name": "JitCodeAdded",
89 "ph": "I",
90 "pid": 17851,
91 "tid": 23,
92 "ts": 190000,
93 "tts": 5610000
96 "args": {
97 "data": {
98 "code_start": "0xd000",
99 "code_len": 100,
100 "name": "LazyCompile:~d file:///script1.js:12",
101 "script_id": 1
104 "cat": "disabled-by-default-v8.cpu_profile",
105 "name": "JitCodeAdded",
106 "ph": "I",
107 "pid": 17851,
108 "tid": 23,
109 "ts": 190000,
110 "tts": 5610000
113 "args": {
114 "data": {
115 "code_start": "0x1e000",
116 "code_len": 100,
117 "name": "LazyCompile:~e file:///script1.js:12",
118 "script_id": 1
121 "cat": "disabled-by-default-v8.cpu_profile",
122 "name": "JitCodeAdded",
123 "ph": "I",
124 "pid": 17851,
125 "tid": 23,
126 "ts": 190000,
127 "tts": 5610000
130 "args": {
131 "data": {
132 "code_start": "0x1e000",
133 "new_code_start": "0xe000",
134 "code_len": 100
137 "cat": "disabled-by-default-v8.cpu_profile",
138 "name": "JitCodeMoved",
139 "ph": "I",
140 "pid": 17851,
141 "tid": 23,
142 "ts": 190000,
143 "tts": 5610000
146 "args": {
147 "data": {
148 "code_start": "0xf000",
149 "code_len": 100,
150 "name": "LazyCompile:~f file:///script1.js:12",
151 "script_id": 1
154 "cat": "disabled-by-default-v8.cpu_profile",
155 "name": "JitCodeAdded",
156 "ph": "I",
157 "pid": 17851,
158 "tid": 23,
159 "ts": 190000,
160 "tts": 5610000
163 "args": {
164 "data": {
165 "code_start": "0xf200",
166 "code_len": 100,
167 "name": "LazyCompile:*f file:///script1.js:12",
168 "script_id": 1
171 "cat": "disabled-by-default-v8.cpu_profile",
172 "name": "JitCodeAdded",
173 "ph": "I",
174 "pid": 17851,
175 "tid": 23,
176 "ts": 190000,
177 "tts": 5610000
180 "args": {
181 "data": {
182 "code_start": "0x8000",
183 "code_len": 100,
184 "name": "LazyCompile:~g file:///script1.js:12",
185 "script_id": 1
188 "cat": "disabled-by-default-v8.cpu_profile",
189 "name": "JitCodeAdded",
190 "ph": "I",
191 "pid": 17851,
192 "tid": 23,
193 "ts": 190000,
194 "tts": 5610000
197 "args": {
198 "data": {
199 "code_start": "0x1000",
200 "code_len": 100,
201 "name": "LazyCompile:~l file:///script1.js:12",
202 "script_id": 1
205 "cat": "disabled-by-default-v8.cpu_profile",
206 "name": "JitCodeAdded",
207 "ph": "I",
208 "pid": 17851,
209 "tid": 23,
210 "ts": 190000,
211 "tts": 5610000
214 "args": {},
215 "cat": "disabled-by-default-devtools.timeline",
216 "name": "Program",
217 "ph": "B",
218 "pid": 17851,
219 "tid": 23,
220 "ts": 200000,
221 "tts": 5612442
224 "args": {
225 "data": {
226 "stack": [
227 "0xc000",
228 "0xb000",
229 "0xa000"
233 "cat": "disabled-by-default-v8.cpu_profile",
234 "name": "V8Sample",
235 "ph": "P",
236 "pid": 17851,
237 "tid": 23,
238 "ts": 208000,
239 "tts": 1758056
242 "args": {},
243 "cat": "disabled-by-default-devtools.timeline",
244 "name": "FunctionCall",
245 "ph": "X",
246 "pid": 17851,
247 "tid": 23,
248 "ts": 210000,
249 "dur": 30000,
250 "tts": 5612442
253 "args": {
254 "data": {
255 "stack": [
256 "0xc000",
257 "0xb000",
258 "0xa000"
262 "cat": "disabled-by-default-v8.cpu_profile",
263 "name": "V8Sample",
264 "ph": "P",
265 "pid": 17851,
266 "tid": 23,
267 "ts": 211000,
268 "tts": 1758056
271 "args": {
272 "data": {
273 "stack": []
276 "cat": "disabled-by-default-devtools.timeline",
277 "name": "V8Sample",
278 "ph": "P",
279 "pid": 17851,
280 "tid": 23,
281 "ts": 212000,
282 "tts": 1758056
285 "args": {
286 "data": {
287 "stack": [
288 "0xc000",
289 "0xb000",
290 "0xa000"
294 "cat": "disabled-by-default-v8.cpu_profile",
295 "name": "V8Sample",
296 "ph": "P",
297 "pid": 17851,
298 "tid": 23,
299 "ts": 220000,
300 "tts": 1758056
303 "args": {
304 "frame": "0x2f7b63884000",
305 "data": {
306 "stackTrace": [
307 { "functionName": "b", "callUID": "b", "scriptId": "1" },
308 { "functionName": "a", "callUID": "a", "scriptId": "1" }
312 "cat": "disabled-by-default-devtools.timeline",
313 "name": "InvalidateLayout",
314 "ph": "X",
315 "pid": 17851,
316 "tid": 23,
317 "ts": 221000,
318 "dur": 7000,
319 "tts": 1758056
322 "args": {
323 "data": {
324 "stack": [
325 "0xc000",
326 "0xb000",
327 "0xa000"
331 "cat": "disabled-by-default-v8.cpu_profile",
332 "name": "V8Sample",
333 "ph": "P",
334 "pid": 17851,
335 "tid": 23,
336 "ts": 221125,
337 "tts": 1758056
340 "args": {
341 "frame": "0x2f7b63884000",
342 "data": {
343 "stackTrace": [
344 { "functionName": "e", "callUID": "e", "scriptId": "1" },
345 { "functionName": "d", "callUID": "d", "scriptId": "1" },
346 { "functionName": "b", "callUID": "b", "scriptId": "1" },
347 { "functionName": "a", "callUID": "a", "scriptId": "1" }
351 "cat": "disabled-by-default-v8.cpu_profile",
352 "name": "InvalidateLayout",
353 "ph": "X",
354 "pid": 17851,
355 "tid": 23,
356 "ts": 222000,
357 "dur": 3000,
358 "tts": 1758056
361 "args": {
362 "data": {
363 "stack": [
364 "0x8000",
365 "0xf000",
366 "0xb000",
367 "0xa000"
371 "cat": "disabled-by-default-v8.cpu_profile",
372 "name": "V8Sample",
373 "ph": "P",
374 "pid": 17851,
375 "tid": 23,
376 "ts": 225500,
377 "tts": 1758056
380 "args": {
381 "data": {
382 "stack": [
383 "0x8000",
384 "0xe000",
385 "0xb000",
386 "0xa000"
390 "cat": "disabled-by-default-v8.cpu_profile",
391 "name": "V8Sample",
392 "ph": "P",
393 "pid": 17851,
394 "tid": 23,
395 "ts": 228125,
396 "tts": 1758056
399 "args": {
400 "data": {
401 "stack": [
402 "0x8000",
403 "0xe000",
404 "0xb000",
405 "0xa000"
409 "cat": "disabled-by-default-v8.cpu_profile",
410 "name": "V8Sample",
411 "ph": "P",
412 "pid": 17851,
413 "tid": 23,
414 "ts": 228250,
415 "tts": 1758056
418 "args": {
419 "data": {
420 "stack": [
421 "0xa000",
422 "0x1000",
423 "0xf000"
427 "cat": "disabled-by-default-v8.cpu_profile",
428 "name": "V8Sample",
429 "ph": "P",
430 "pid": 17851,
431 "tid": 23,
432 "ts": 230000,
433 "tts": 1758056
436 "args": {
437 "data": {
438 "stack": [
439 "0xa000",
440 "0x1000",
441 "0xf210"
445 "cat": "disabled-by-default-v8.cpu_profile",
446 "name": "V8Sample",
447 "ph": "P",
448 "pid": 17851,
449 "tid": 23,
450 "ts": 230125,
451 "tts": 1758056
454 "args": {},
455 "cat": "disabled-by-default-devtools.timeline",
456 "name": "Program",
457 "ph": "E",
458 "pid": 17851,
459 "tid": 23,
460 "ts": 500000,
461 "tts": 5612506
465 Runtime.experiments.enableForTest("timelineTracingJSProfile");
466 var tracingTimelineModel = InspectorTest.tracingTimelineModel();
467 tracingTimelineModel.setEventsForTest(rawTraceEvents);
468 var events = tracingTimelineModel.mainThreadEvents();
469 events.filter(function(e) { return e.name === "JSFrame"; }).forEach(function(e) {
470 InspectorTest.addResult(e.name + ": " + e.startTime.toFixed(3) + " / " + (e.duration.toFixed(3) || 0) + " " + e.args.data.functionName);
473 InspectorTest.completeTest();
476 </script>
477 </head>
478 <body onload="runTest()">
479 </body>
480 </html>