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

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

Issue 2150803002: [DevTools] Add callFrame to CPUProfileNode & SamplingHeapProfileNode (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: addressed comments Created 4 years, 5 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 "callFrame":
17 "scriptId": "0", 17 {
18 "url": "a.js", 18 "functionName": "(root)",
19 "lineNumber": 0, 19 "scriptId": "0",
20 "url": "a.js",
21 "lineNumber": 0
22 },
20 "hitCount": 350, 23 "hitCount": 350,
21 "callUID": 1000, 24 "callUID": 1000,
22 "children": [ 25 "children": [
23 { 26 {
24 "functionName": "(idle)", 27 "callFrame":
25 "scriptId": "0", 28 {
26 "url": "a.js", 29 "functionName": "(idle)",
27 "lineNumber": 1, 30 "scriptId": "0",
31 "url": "a.js",
32 "lineNumber": 1
33 },
28 "hitCount": 1000, 34 "hitCount": 1000,
29 "callUID": 2, 35 "callUID": 2,
30 "children": [] 36 "children": []
31 }, 37 },
32 { 38 {
33 "functionName": "A", 39 "callFrame":
34 "scriptId": "0", 40 {
35 "url": "a.js", 41 "functionName": "A",
36 "lineNumber": 4642, 42 "scriptId": "0",
43 "url": "a.js",
44 "lineNumber": 4642
45 },
37 "hitCount": 250, 46 "hitCount": 250,
38 "callUID": 1001, 47 "callUID": 1001,
39 "children": [ 48 "children": [
40 { 49 {
41 "functionName": "C", 50 "callFrame":
42 "scriptId": "0", 51 {
43 "url": "a.js", 52 "functionName": "C",
44 "lineNumber": 525, 53 "scriptId": "0",
54 "url": "a.js",
55 "lineNumber": 525
56 },
45 "hitCount": 100, 57 "hitCount": 100,
46 "callUID": 2000, 58 "callUID": 2000,
47 "children": [ 59 "children": [
48 { 60 {
49 "functionName": "D", 61 "callFrame":
50 "scriptId": "0", 62 {
51 "url": "a.js", 63 "functionName": "D",
52 "lineNumber": 425, 64 "scriptId": "0",
65 "url": "a.js",
66 "lineNumber": 425
67 },
53 "hitCount": 20, 68 "hitCount": 20,
54 "callUID": 3000, 69 "callUID": 3000,
55 "children": [] 70 "children": []
56 } 71 }
57 ] 72 ]
58 } 73 }
59 ] 74 ]
60 }, 75 },
61 { 76 {
62 "functionName": "B", 77 "callFrame":
63 "scriptId": "0", 78 {
64 "url": "a.js", 79 "functionName": "B",
65 "lineNumber": 4662, 80 "scriptId": "0",
81 "url": "a.js",
82 "lineNumber": 4662
83 },
66 "hitCount": 150, 84 "hitCount": 150,
67 "callUID": 1002, 85 "callUID": 1002,
68 "children": [ 86 "children": [
69 { 87 {
70 "functionName": "C", 88 "callFrame":
71 "scriptId": "0", 89 {
72 "url": "a.js", 90 "functionName": "C",
73 "lineNumber": 525, 91 "scriptId": "0",
92 "url": "a.js",
93 "lineNumber": 525
94 },
74 "hitCount": 100, 95 "hitCount": 100,
75 "callUID": 2000, 96 "callUID": 2000,
76 "children": [ 97 "children": [
77 { 98 {
78 "functionName": "D", 99 "callFrame":
79 "scriptId": "0", 100 {
80 "url": "a.js", 101 "functionName": "D",
81 "lineNumber": 425, 102 "scriptId": "0",
103 "url": "a.js",
104 "lineNumber": 425
105 },
82 "hitCount": 30, 106 "hitCount": 30,
83 "callUID": 3000, 107 "callUID": 3000,
84 "children": [] 108 "children": []
85 } 109 }
86 ] 110 ]
87 } 111 }
88 ] 112 ]
89 } 113 }
90 ] 114 ]
91 }, 115 },
(...skipping 18 matching lines...) Expand all
110 } 134 }
111 135
112 </script> 136 </script>
113 </head> 137 </head>
114 <body onload="runTest()"> 138 <body onload="runTest()">
115 <p> 139 <p>
116 Tests bottom-up view self and total time calculation in CPU profiler. 140 Tests bottom-up view self and total time calculation in CPU profiler.
117 </p> 141 </p>
118 </body> 142 </body>
119 </html> 143 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698