3 <script src=
"../../http/tests/inspector/inspector-test.js"></script>
4 <script src=
"../tracing-test.js"></script>
8 var sessionId
= "6.23";
15 "name": "process_name",
23 "name": "CrRendererMain"
26 "name": "thread_name",
34 "sessionId": sessionId
36 "cat": "disabled-by-default-devtools.timeline",
37 "name": "TracingStartedInPage",
47 "code_start": "0xa000",
49 "name": "LazyCompile:~a file:///script1.js:12",
53 "cat": "disabled-by-default-v8.cpu_profile",
54 "name": "JitCodeAdded",
64 "code_start": "0xb000",
66 "name": "LazyCompile:~b file:///script1.js:12",
70 "cat": "disabled-by-default-v8.cpu_profile",
71 "name": "JitCodeAdded",
81 "code_start": "0xc000",
83 "name": "LazyCompile:~c file:///script1.js:12",
87 "cat": "disabled-by-default-v8.cpu_profile",
88 "name": "JitCodeAdded",
98 "code_start": "0xd000",
100 "name": "LazyCompile:~d file:///script1.js:12",
104 "cat": "disabled-by-default-v8.cpu_profile",
105 "name": "JitCodeAdded",
115 "code_start": "0x1e000",
117 "name": "LazyCompile:~e file:///script1.js:12",
121 "cat": "disabled-by-default-v8.cpu_profile",
122 "name": "JitCodeAdded",
132 "code_start": "0x1e000",
133 "new_code_start": "0xe000",
137 "cat": "disabled-by-default-v8.cpu_profile",
138 "name": "JitCodeMoved",
148 "code_start": "0xf000",
150 "name": "LazyCompile:~f file:///script1.js:12",
154 "cat": "disabled-by-default-v8.cpu_profile",
155 "name": "JitCodeAdded",
165 "code_start": "0xf200",
167 "name": "LazyCompile:*f file:///script1.js:12",
171 "cat": "disabled-by-default-v8.cpu_profile",
172 "name": "JitCodeAdded",
182 "code_start": "0x8000",
184 "name": "LazyCompile:~g file:///script1.js:12",
188 "cat": "disabled-by-default-v8.cpu_profile",
189 "name": "JitCodeAdded",
199 "code_start": "0x1000",
201 "name": "LazyCompile:~l file:///script1.js:12",
205 "cat": "disabled-by-default-v8.cpu_profile",
206 "name": "JitCodeAdded",
215 "cat": "disabled-by-default-devtools.timeline",
233 "cat": "disabled-by-default-v8.cpu_profile",
243 "cat": "disabled-by-default-devtools.timeline",
244 "name": "FunctionCall",
262 "cat": "disabled-by-default-v8.cpu_profile",
276 "cat": "disabled-by-default-devtools.timeline",
294 "cat": "disabled-by-default-v8.cpu_profile",
304 "frame": "0x2f7b63884000",
307 { "functionName": "b", "callUID": "b", "scriptId": "1" },
308 { "functionName": "a", "callUID": "a", "scriptId": "1" }
312 "cat": "disabled-by-default-devtools.timeline",
313 "name": "InvalidateLayout",
331 "cat": "disabled-by-default-v8.cpu_profile",
341 "frame": "0x2f7b63884000",
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",
371 "cat": "disabled-by-default-v8.cpu_profile",
390 "cat": "disabled-by-default-v8.cpu_profile",
409 "cat": "disabled-by-default-v8.cpu_profile",
427 "cat": "disabled-by-default-v8.cpu_profile",
445 "cat": "disabled-by-default-v8.cpu_profile",
455 "cat": "disabled-by-default-devtools.timeline",
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();
478 <body onload=
"runTest()">