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

Side by Side Diff: LayoutTests/inspector/tracing/timeline-js-samping-codeobject-names.html

Issue 1207693003: DevTools: Skip native frames on timeline JS profiler. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: addressing comments. Created 5 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | LayoutTests/inspector/tracing/timeline-js-samping-codeobject-names-expected.txt » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 <html> 1 <html>
2 <head> 2 <head>
3 <script src="../../http/tests/inspector/inspector-test.js"></script> 3 <script src="../../http/tests/inspector/inspector-test.js"></script>
4 <script src="../tracing-test.js"></script> 4 <script src="../tracing-test.js"></script>
5 <script> 5 <script>
6 function test() 6 function test()
7 { 7 {
8 Runtime.experiments.enableForTest("timelineTracingJSProfile"); 8 Runtime.experiments.enableForTest("timelineTracingJSProfile");
9 var rawNames = [ 9 var rawNames = [
10 "", 10 "",
11 "Script:", 11 "Script:",
12 "Script:http://example.com/alina?", 12 "Script:http://example.com/alina?",
13 "Script:http://example.com/:1", 13 "Script:http://example.com/:1",
14 "Script:http://example.com/:1:2", 14 "Script:http://example.com/:1:2",
15 "Script:http://example.com/:1:2:3", 15 "Script:http://example.com/:1:2:3",
16 "Script:http://example.com/:1:2:3x:4", 16 "Script:http://example.com/:1:2:3x:4",
17 "Builtin:~foo1 http://url.com/foo.js", 17 "Builtin:~foo1 http://url.com/foo.js",
18 "Builtin:~foo2 http://url.com/foo.js:11", 18 "Builtin:~foo2 native http://url.com/foo.js:11",
19 "Builtin:*foo3 http://url.com/foo.js:11:22", 19 "Builtin:*foo3 http://url.com/foo.js:11:22",
20 "Builtin:foo4 http://url.com/foo.js:11:22:33", 20 "Builtin:foo4 http://url.com/foo.js:11:22:33",
21 "Builtin:~ http://url.com/anonymous.js:123", 21 "Builtin:~ http://url.com/anonymous.js:123",
22 "Builtin:~function name with spaces http://url.com/anonymous.js:123" 22 "Builtin:~ native http://url.com/anonymous.js:123",
23 "Builtin:~function name with spaces http://url.com/bar:123",
24 "Builtin:~native function name with spaces native http://url.com/bar.js: 123",
25 "Builtin:~user_function_that_is_not_native http://url.com/bar.js:123",
26 "Builtin:~native http://url.com/bar.js:123"
23 ]; 27 ];
24 28
25 for (var name of rawNames) { 29 for (var name of rawNames) {
26 var frame = WebInspector.TimelineJSProfileProcessor._buildCallFrame(name , "456"); 30 var frame = WebInspector.TimelineJSProfileProcessor._buildCallFrame(name , "456");
27 InspectorTest.addResult(name + " => " + [frame.functionName, frame.url, frame.scriptId, frame.lineNumber, frame.columnNumber].join(",")); 31 InspectorTest.addResult(name + " => " + [frame.functionName, frame.url, frame.scriptId, frame.lineNumber, frame.columnNumber, frame.isNative].join(",")) ;
28 } 32 }
29 33
30 InspectorTest.completeTest(); 34 InspectorTest.completeTest();
31 } 35 }
32 36
33 </script> 37 </script>
34 </head> 38 </head>
35 <body onload="runTest()"> 39 <body onload="runTest()">
36 </body> 40 </body>
37 </html> 41 </html>
OLDNEW
« no previous file with comments | « no previous file | LayoutTests/inspector/tracing/timeline-js-samping-codeobject-names-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698