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

Side by Side Diff: third_party/WebKit/LayoutTests/inspector/profiler/cpu-profiler-bottom-up-times.html

Issue 1624783002: DevTools: Switch to using fast stack iterator to collect stacks during timeline recording. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: update profiler tests Created 4 years, 10 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
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="profiler-test.js"></script> 4 <script src="profiler-test.js"></script>
5 <script> 5 <script>
6 6
7 function test() 7 function test()
8 { 8 {
9 var profileAndExpectations = { 9 var profileAndExpectations = {
10 "title": "profile1", 10 "title": "profile1",
11 "target": function() { 11 "target": function() {
12 return WebInspector.targetManager.targets()[0]; 12 return WebInspector.targetManager.targets()[0];
13 }, 13 },
14 "_profile": { 14 "_profile": {
15 "head": { 15 "head": {
16 "functionName": "(root)", 16 "functionName": "(root)",
17 "scriptId": "0", 17 "scriptId": "0",
18 "url": "", 18 "url": "a.js",
19 "lineNumber": 0, 19 "lineNumber": 0,
20 "hitCount": 50, 20 "hitCount": 50,
21 "callUID": 1000, 21 "callUID": 1000,
22 "children": [ 22 "children": [
23 { 23 {
24 "functionName": "(idle)", 24 "functionName": "(idle)",
25 "scriptId": "40", 25 "scriptId": "0",
26 "url": "", 26 "url": "a.js",
27 "lineNumber": 1, 27 "lineNumber": 1,
28 "hitCount": 300, 28 "hitCount": 300,
29 "callUID": 2, 29 "callUID": 2,
30 "children": [] 30 "children": []
31 }, 31 },
32 { 32 {
33 "functionName": "A", 33 "functionName": "A",
34 "scriptId": "40", 34 "scriptId": "0",
35 "url": "", 35 "url": "a.js",
36 "lineNumber": 4642, 36 "lineNumber": 4642,
37 "hitCount": 250, 37 "hitCount": 250,
38 "callUID": 1001, 38 "callUID": 1001,
39 "children": [ 39 "children": [
40 { 40 {
41 "functionName": "C", 41 "functionName": "C",
42 "scriptId": "40", 42 "scriptId": "0",
43 "url": "", 43 "url": "a.js",
44 "lineNumber": 525, 44 "lineNumber": 525,
45 "hitCount": 100, 45 "hitCount": 100,
46 "callUID": 2000, 46 "callUID": 2000,
47 "children": [ 47 "children": [
48 { 48 {
49 "functionName": "D", 49 "functionName": "D",
50 "scriptId": "40", 50 "scriptId": "0",
51 "url": "", 51 "url": "a.js",
52 "lineNumber": 425, 52 "lineNumber": 425,
53 "hitCount": 20, 53 "hitCount": 20,
54 "callUID": 3000, 54 "callUID": 3000,
55 "children": [] 55 "children": []
56 } 56 }
57 ] 57 ]
58 } 58 }
59 ] 59 ]
60 }, 60 },
61 { 61 {
62 "functionName": "B", 62 "functionName": "B",
63 "scriptId": "40", 63 "scriptId": "0",
64 "url": "", 64 "url": "a.js",
65 "lineNumber": 4662, 65 "lineNumber": 4662,
66 "hitCount": 150, 66 "hitCount": 150,
67 "callUID": 1002, 67 "callUID": 1002,
68 "children": [ 68 "children": [
69 { 69 {
70 "functionName": "C", 70 "functionName": "C",
71 "scriptId": "40", 71 "scriptId": "0",
72 "url": "", 72 "url": "a.js",
73 "lineNumber": 525, 73 "lineNumber": 525,
74 "hitCount": 100, 74 "hitCount": 100,
75 "callUID": 2000, 75 "callUID": 2000,
76 "children": [ 76 "children": [
77 { 77 {
78 "functionName": "D", 78 "functionName": "D",
79 "scriptId": "40", 79 "scriptId": "0",
80 "url": "", 80 "url": "a.js",
81 "lineNumber": 425, 81 "lineNumber": 425,
82 "hitCount": 30, 82 "hitCount": 30,
83 "callUID": 3000, 83 "callUID": 3000,
84 "children": [] 84 "children": []
85 } 85 }
86 ] 86 ]
87 } 87 }
88 ] 88 ]
89 } 89 }
90 ] 90 ]
(...skipping 21 matching lines...) Expand all
112 } 112 }
113 113
114 </script> 114 </script>
115 </head> 115 </head>
116 <body onload="runTest()"> 116 <body onload="runTest()">
117 <p> 117 <p>
118 Tests bottom-up view self and total time calculation in CPU profiler. 118 Tests bottom-up view self and total time calculation in CPU profiler.
119 </p> 119 </p>
120 </body> 120 </body>
121 </html> 121 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698