OLD | NEW |
| (Empty) |
1 <link rel="import" href="../../../../packages/polymer/polymer.html"> | |
2 <link rel="import" href="action_link.html"> | |
3 <link rel="import" href="function_ref.html"> | |
4 <link rel="import" href="isolate_ref.html"> | |
5 <link rel="import" href="observatory_element.html"> | |
6 <link rel="import" href="script_inset.html"> | |
7 <link rel="import" href="script_ref.html"> | |
8 <polymer-element name="isolate-summary" extends="observatory-element"> | |
9 <template> | |
10 <link rel="stylesheet" href="css/shared.css"> | |
11 <div class="flex-row"> | |
12 <div class="flex-item-10-percent"> | |
13 <img src="img/isolate_icon.png"> | |
14 </div> | |
15 <div class="flex-item-10-percent"> | |
16 <isolate-ref ref="{{ isolate }}"></isolate-ref> | |
17 </div> | |
18 <div class="flex-item-30-percent"> | |
19 <isolate-run-state isolate="{{ isolate }}"></isolate-run-state> | |
20 </div> | |
21 <div class="flex-item-40-percent"> | |
22 <isolate-location isolate="{{ isolate }}"></isolate-location> | |
23 </div> | |
24 <div class="flex-item-10-percent"> | |
25 </div> | |
26 </div> | |
27 | |
28 <div class="flex-row"> | |
29 <div class="flex-item-20-percent"></div> | |
30 <div class="flex-item-60-percent"> | |
31 <hr> | |
32 </div> | |
33 <div class="flex-item-20-percent"></div> | |
34 </div> | |
35 | |
36 <isolate-shared-summary isolate="{{ isolate }}"></isolate-shared-summary> | |
37 | |
38 </template> | |
39 </polymer-element> | |
40 | |
41 <polymer-element name="isolate-run-state" extends="observatory-element"> | |
42 <template> | |
43 <template if="{{ isolate.pauseEvent != null }}"> | |
44 <strong>paused</strong> | |
45 <action-link callback="{{ resume }}" label="resume"></action-link> | |
46 | |
47 <action-link callback="{{ stepInto }}" label="step"></action-link> | |
48 <action-link callback="{{ stepOver }}" label="step over"></action-lin
k> | |
49 <action-link callback="{{ stepOut }}" label="step out"></action-link> | |
50 </template> | |
51 | |
52 <template if="{{ isolate.running }}"> | |
53 <strong>running</strong> | |
54 <action-link callback="{{ pause }}" label="pause"></action-link> | |
55 </template> | |
56 | |
57 <template if="{{ isolate.idle }}"> | |
58 <strong>idle</strong> | |
59 <action-link callback="{{ pause }}" label="pause"></action-link> | |
60 </template> | |
61 | |
62 <template if="{{ isolate.loading }}"> | |
63 <strong>loading...</strong> | |
64 </template> | |
65 </template> | |
66 </polymer-element> | |
67 | |
68 <polymer-element name="isolate-location" extends="observatory-element"> | |
69 <template> | |
70 <template if="{{ isolate.pauseEvent != null }}"> | |
71 <template if="{{ isolate.pauseEvent.eventType == 'IsolateCreated' }}"> | |
72 at isolate start | |
73 </template> | |
74 | |
75 <template if="{{ isolate.pauseEvent.eventType == 'IsolateShutdown' }}"> | |
76 at isolate exit | |
77 </template> | |
78 | |
79 <template if="{{ isolate.pauseEvent.eventType == 'IsolateInterrupted' || | |
80 isolate.pauseEvent.eventType == 'BreakpointReached' || | |
81 isolate.pauseEvent.eventType == 'ExceptionThrown' }}"> | |
82 <template if="{{ isolate.pauseEvent.breakpoint != null }}"> | |
83 by breakpoint | |
84 </template> | |
85 <template if="{{ isolate.pauseEvent.eventType == 'ExceptionThrown' }}"> | |
86 by exception | |
87 </template> | |
88 at | |
89 <function-ref ref="{{ isolate.topFrame['function'] }}"> | |
90 </function-ref> | |
91 (<script-ref ref="{{ isolate.topFrame['script'] }}" | |
92 pos="{{ isolate.topFrame['tokenPos'] }}"></script-ref>) | |
93 </template> | |
94 </template> | |
95 | |
96 <template if="{{ isolate.running }}"> | |
97 at | |
98 <function-ref ref="{{ isolate.topFrame['function'] }}"> | |
99 </function-ref> | |
100 (<script-ref ref="{{ isolate.topFrame['script'] }}" | |
101 pos="{{ isolate.topFrame['tokenPos'] }}"></script-ref>) | |
102 </template> | |
103 | |
104 </template> | |
105 </polymer-element> | |
106 | |
107 <polymer-element name="isolate-shared-summary" extends="observatory-element"> | |
108 <template> | |
109 <style> | |
110 .errorBox { | |
111 background-color: #f5f5f5; | |
112 border: 1px solid #ccc; | |
113 padding: 10px; | |
114 font-family: consolas, courier, monospace; | |
115 font-size: 1em; | |
116 line-height: 1.2em; | |
117 white-space: pre; | |
118 } | |
119 </style> | |
120 <link rel="stylesheet" href="css/shared.css"> | |
121 <template if="{{ isolate.error != null }}"> | |
122 <div class="content-centered"> | |
123 <pre class="errorBox">{{ isolate.error.message }}</pre> | |
124 <br> | |
125 </div> | |
126 </template> | |
127 <div class="flex-row"> | |
128 <div class="flex-item-10-percent"> | |
129 </div> | |
130 <div class="flex-item-40-percent"> | |
131 <isolate-counter-chart counters="{{ isolate.counters }}"></isolate-count
er-chart> | |
132 </div> | |
133 <div class="flex-item-40-percent"> | |
134 <div class="memberList"> | |
135 <div class="memberItem"> | |
136 <div class="memberName">new heap</div> | |
137 <div class="memberValue"> | |
138 {{ isolate.newSpace.used | formatSize }} | |
139 of | |
140 {{ isolate.newSpace.capacity | formatSize }} | |
141 </div> | |
142 </div> | |
143 <div class="memberItem"> | |
144 <div class="memberName">old heap</div> | |
145 <div class="memberValue"> | |
146 {{ isolate.oldSpace.used | formatSize }} | |
147 of | |
148 {{ isolate.oldSpace.capacity | formatSize }} | |
149 </div> | |
150 </div> | |
151 </div> | |
152 <br> | |
153 <div class="memberItem"> | |
154 <div class="memberValue"> | |
155 See <a on-click="{{ goto }}" _href="{{ gotoLink('/debugger' + isolat
e.link) }}">debugger</a> | |
156 </div> | |
157 </div> | |
158 <div class="memberItem"> | |
159 <div class="memberValue"> | |
160 See <a on-click="{{ goto }}" _href="{{ gotoLink('/class-tree' + isol
ate.link) }}">class hierarchy</a> | |
161 </div> | |
162 </div> | |
163 <div class="memberItem"> | |
164 <div class="memberValue"> | |
165 See <a on-click="{{ goto }}" _href="{{ gotoLink(isolate.relativeLink
('profile')) }}">cpu profile</a> | |
166 </div> | |
167 </div> | |
168 <div class="memberItem"> | |
169 <div class="memberValue"> | |
170 See <a on-click="{{ goto }}" _href="{{ gotoLink(isolate.relativeLink
('allocationprofile')) }}">allocation profile</a> | |
171 </div> | |
172 </div> | |
173 <div class="memberItem"> | |
174 <div class="memberValue"> | |
175 See <a on-click="{{ goto }}" _href="{{ gotoLink(isolate.relativeLink
('heapmap')) }}">heap map</a> | |
176 </div> | |
177 </div> | |
178 <div class="memberItem"> | |
179 <div class="memberValue"> | |
180 See <a on-click="{{ goto }}" _href="{{ gotoLink(isolate.relativeLink
('metrics')) }}">metrics</a> | |
181 </div> | |
182 </div> | |
183 <!-- Temporarily disabled until UI for dart:io is acceptable. | |
184 <template if="{{ isolate.ioEnabled }}"> | |
185 <div class="memberItem"> | |
186 <div class="memberValue"> | |
187 See <a on-click="{{ goto }}" href="{{ gotoLink(isolate.relativeLin
k('io')) }}">dart:io</a> | |
188 </div> | |
189 </div> | |
190 </template> | |
191 --> | |
192 </div> | |
193 <div class="flex-item-10-percent"> | |
194 </div> | |
195 </div> | |
196 </template> | |
197 </polymer-element> | |
198 | |
199 <polymer-element name="isolate-counter-chart" extends="observatory-element"> | |
200 <template> | |
201 <div id="counterPieChart" style="height: 200px"></div> | |
202 </template> | |
203 </polymer-element> | |
204 | |
205 <script type="application/dart" src="isolate_summary.dart"></script> | |
OLD | NEW |