OLD | NEW |
1 <link rel="import" href="../../../../packages/polymer/polymer.html"> | 1 <link rel="import" href="../../../../packages/polymer/polymer.html"> |
2 <link rel="import" href="code_ref.html"> | 2 <link rel="import" href="code_ref.html"> |
3 <link rel="import" href="function_ref.html"> | 3 <link rel="import" href="function_ref.html"> |
4 <link rel="import" href="nav_bar.html"> | 4 <link rel="import" href="nav_bar.html"> |
5 <link rel="import" href="observatory_element.html"> | 5 <link rel="import" href="observatory_element.html"> |
6 <link rel="import" href="sliding_checkbox.html"> | 6 <link rel="import" href="sliding_checkbox.html"> |
7 <link rel="import" href="view_footer.html"> | 7 <link rel="import" href="view_footer.html"> |
8 | 8 |
9 <polymer-element name="sample-buffer-control" extends="observatory-element"> | 9 <polymer-element name="sample-buffer-control" extends="observatory-element"> |
10 <template> | 10 <template> |
(...skipping 16 matching lines...) Expand all Loading... |
27 | 27 |
28 .notice { | 28 .notice { |
29 background-color: #fcf8e3; | 29 background-color: #fcf8e3; |
30 } | 30 } |
31 | 31 |
32 .red { | 32 .red { |
33 background-color: #f2dede; | 33 background-color: #f2dede; |
34 } | 34 } |
35 </style> | 35 </style> |
36 <div class="content-centered-big"> | 36 <div class="content-centered-big"> |
37 <h2>Sample buffer</h2> | 37 <template if="{{ state != 'kNotLoaded' }}"> |
38 <hr> | 38 <h2>Sample buffer</h2> |
| 39 <hr> |
| 40 </template> |
39 <template if="{{ state == 'kFetching' }}"> | 41 <template if="{{ state == 'kFetching' }}"> |
40 <div class="statusBox shadow center"> | 42 <div class="statusBox shadow center"> |
41 <div class="statusMessage">Fetching profile from VM...</div> | 43 <div class="statusMessage">Fetching profile from VM...</div> |
42 </div> | 44 </div> |
43 </template> | 45 </template> |
44 <template if="{{ state == 'kLoading' }}"> | 46 <template if="{{ state == 'kLoading' }}"> |
45 <div class="statusBox shadow center"> | 47 <div class="statusBox shadow center"> |
46 <div class="statusMessage">Loading profile...</div> | 48 <div class="statusMessage">Loading profile...</div> |
47 </div> | 49 </div> |
48 </template> | 50 </template> |
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
108 <polymer-element name="stack-trace-tree-config" extends="observatory-element"> | 110 <polymer-element name="stack-trace-tree-config" extends="observatory-element"> |
109 <template> | 111 <template> |
110 <link rel="stylesheet" href="css/shared.css"> | 112 <link rel="stylesheet" href="css/shared.css"> |
111 <style> | 113 <style> |
112 .statusBox { | 114 .statusBox { |
113 height: 100%; | 115 height: 100%; |
114 padding: 1em; | 116 padding: 1em; |
115 } | 117 } |
116 </style> | 118 </style> |
117 <div class="content-centered-big"> | 119 <div class="content-centered-big"> |
118 <h2>Tree display</h2> | 120 <template if="{{ show }}"> |
119 <hr> | 121 <h2>Tree display</h2> |
120 <div class="memberList"> | 122 <hr> |
121 <template if="{{ showModeSelector }}"> | 123 <div class="memberList"> |
122 <div class="memberItem"> | 124 <template if="{{ showModeSelector }}"> |
123 <div class="memberName">Mode</div> | 125 <div class="memberItem"> |
124 <div class="memberValue"> | 126 <div class="memberName">Mode</div> |
125 <select value="{{modeSelector}}"> | 127 <div class="memberValue"> |
126 <option value="Code">Code</option> | 128 <select value="{{modeSelector}}"> |
127 <option value="Function">Function</option> | 129 <option value="Code">Code</option> |
128 </select> | 130 <option value="Function">Function</option> |
| 131 </select> |
| 132 </div> |
129 </div> | 133 </div> |
| 134 </template> |
| 135 <template if="{{ showDirectionSelector }}"> |
| 136 <div class="memberItem"> |
| 137 <div class="memberName">Call Tree Direction</div> |
| 138 <div class="memberValue"> |
| 139 <select value="{{directionSelector}}"> |
| 140 <option value="Down">Top down</option> |
| 141 <option value="Up">Bottom up</option> |
| 142 </select> |
| 143 </div> |
| 144 </div> |
| 145 </template> |
| 146 </div> |
| 147 <template if="{{ directionSelector == 'Down' }}"> |
| 148 <br> |
| 149 <div class="statusBox shadow"> |
| 150 <div>Tree is rooted at main.</div> |
| 151 <br> |
| 152 <div>Child nodes are callees.</div> |
130 </div> | 153 </div> |
131 </template> | 154 </template> |
132 <template if="{{ showDirectionSelector }}"> | 155 <template if="{{ directionSelector == 'Up' }}"> |
133 <div class="memberItem"> | 156 <br> |
134 <div class="memberName">Call Tree Direction</div> | 157 <div class="statusBox shadow"> |
135 <div class="memberValue"> | 158 <div>Tree is rooted at executing function / code.</div> |
136 <select value="{{directionSelector}}"> | 159 <br> |
137 <option value="Down">Top down</option> | 160 <div>Child nodes are callers.</div> |
138 <option value="Up">Bottom up</option> | |
139 </select> | |
140 </div> | |
141 </div> | 161 </div> |
142 </template> | 162 </template> |
143 </div> | |
144 <template if="{{ directionSelector == 'Down' }}"> | |
145 <br> | |
146 <div class="statusBox shadow"> | |
147 <div>Tree is rooted at main.</div> | |
148 <br> | |
149 <div>Child nodes are callees.</div> | |
150 </div> | |
151 </template> | |
152 <template if="{{ directionSelector == 'Up' }}"> | |
153 <br> | |
154 <div class="statusBox shadow"> | |
155 <div>Tree is rooted at executing function / code.</div> | |
156 <br> | |
157 <div>Child nodes are callers.</div> | |
158 </div> | |
159 </template> | 163 </template> |
160 </div> | 164 </div> |
161 </template> | 165 </template> |
162 </polymer-element> | 166 </polymer-element> |
163 | 167 |
164 <polymer-element name="cpu-profile-tree" extends="observatory-element"> | 168 <polymer-element name="cpu-profile-tree" extends="observatory-element"> |
165 <template> | 169 <template> |
166 <link rel="stylesheet" href="css/shared.css"> | 170 <link rel="stylesheet" href="css/shared.css"> |
167 <style> | 171 <style> |
168 .infoBox { | 172 .infoBox { |
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
213 -webkit-animation: fadeIn 0.5s; | 217 -webkit-animation: fadeIn 0.5s; |
214 } | 218 } |
215 tbody tr:hover { | 219 tbody tr:hover { |
216 background-color: #FAFAFA; | 220 background-color: #FAFAFA; |
217 } | 221 } |
218 tr td:first-child, | 222 tr td:first-child, |
219 tr th:first-child { | 223 tr th:first-child { |
220 width: 100%; | 224 width: 100%; |
221 } | 225 } |
222 </style> | 226 </style> |
223 <table class="full-width tree"> | 227 <table id="treeTable" class="full-width tree"> |
224 <thead id="treeHeader"> | 228 <thead id="treeHeader"> |
225 <tr> | 229 <tr> |
226 <th>Method</th> | 230 <th>Method</th> |
227 <th>Executing</th> | 231 <th>Executing</th> |
228 </tr> | 232 </tr> |
229 </thead> | 233 </thead> |
230 <tbody id="treeBody"> | 234 <tbody id="treeBody"> |
231 </tbody> | 235 </tbody> |
232 </table> | 236 </table> |
233 </template> | 237 </template> |
(...skipping 237 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
471 <div class="content-centered-big"> | 475 <div class="content-centered-big"> |
472 <div class="tableWell shadow"> | 476 <div class="tableWell shadow"> |
473 <cpu-profile-tree id="cpuProfileTree"></cpu-profile-tree> | 477 <cpu-profile-tree id="cpuProfileTree"></cpu-profile-tree> |
474 </div> | 478 </div> |
475 </div> | 479 </div> |
476 <view-footer></view-footer> | 480 <view-footer></view-footer> |
477 </template> | 481 </template> |
478 </polymer-element> | 482 </polymer-element> |
479 | 483 |
480 <script type="application/dart" src="cpu_profile.dart"></script> | 484 <script type="application/dart" src="cpu_profile.dart"></script> |
OLD | NEW |