OLD | NEW |
| (Empty) |
1 <link rel="import" href="../../../../packages/polymer/polymer.html"> | |
2 <link rel="import" href="class_ref.html"> | |
3 <link rel="import" href="error_view.html"> | |
4 <link rel="import" href="field_ref.html"> | |
5 <link rel="import" href="function_ref.html"> | |
6 <link rel="import" href="inbound_reference.html"> | |
7 <link rel="import" href="instance_ref.html"> | |
8 <link rel="import" href="observatory_element.html"> | |
9 <link rel="import" href="nav_bar.html"> | |
10 <link rel="import" href="eval_link.html"> | |
11 | |
12 <polymer-element name="object-common" extends="observatory-element"> | |
13 <template> | |
14 <link rel="stylesheet" href="css/shared.css"> | |
15 <div class="memberList"> | |
16 | |
17 <div class="memberItem"> | |
18 <div class="memberName">class</div> | |
19 <div class="memberValue"> | |
20 <class-ref ref="{{ object.clazz }}"></class-ref> | |
21 </div> | |
22 </div> | |
23 | |
24 <template if="{{ object.size != null }}"> | |
25 <div class="memberItem" title="Space for this object in memory"> | |
26 <div class="memberName">size</div> | |
27 <div class="memberValue">{{ object.size | formatSize }}</div> | |
28 </div> | |
29 </template> | |
30 | |
31 <template if="{{ object.size == null }}"> | |
32 <div class="memberItem" title="Space for this object in memory"> | |
33 <div class="memberName">size</div> | |
34 <div class="memberValue">0</div> | |
35 </div> | |
36 </template> | |
37 | |
38 <div class="memberItem" title="Space that would be reclaimed if references
to this object were replaced with null"> | |
39 <div class="memberName">retained size</div> | |
40 <div class="memberValue"> | |
41 <template if="{{ retainedBytes == null }}"> | |
42 <eval-link callback="{{ retainedSize }}" | |
43 label="[calculate]"> | |
44 </eval-link> | |
45 </template> | |
46 <template if="{{ retainedBytes != null }}"> | |
47 {{ retainedBytes | formatSize }} | |
48 </template> | |
49 </div> | |
50 </div> | |
51 | |
52 <div class="memberItem"> | |
53 <div class="memberName">retaining path</div> | |
54 <div class="memberValue"> | |
55 <template if="{{ path == null }}"> | |
56 <eval-link callback="{{ retainingPath }}" | |
57 label="[find]" | |
58 expr="10"> | |
59 </eval-link> | |
60 </template> | |
61 <template if="{{ path != null }}"> | |
62 <template repeat="{{ element in path['elements'] }}"> | |
63 <div class="memberItem"> | |
64 <div class="memberName">[{{ element['index']}}]</div> | |
65 <div class="memberValue"> | |
66 <any-service-ref ref="{{ element['value'] }}"></any-service-ref> | |
67 <template if="{{ element['parentField'] != null }}"> | |
68 in <field-ref ref="{{ element['parentField'] }}"></field-ref>
of | |
69 </template> | |
70 <template if="{{ element['parentListIndex'] != null }}"> | |
71 in [{{ element['parentListIndex'] }}] of | |
72 </template> | |
73 </div> | |
74 </div> | |
75 </template> | |
76 <template if="{{ path['length'] > path['elements'].length }}"> | |
77 showing {{ path['elements'].length }} of {{ path['length'] }} | |
78 <eval-link | |
79 callback="{{ retainingPath }}" | |
80 label="[find more]" | |
81 expr="{{ path['elements'].length * 2 }}"> | |
82 </eval-link> | |
83 </template> | |
84 </template> | |
85 </div> | |
86 </div> | |
87 | |
88 <div class="memberItem" title="Objects which directly reference this objec
t"> | |
89 <div class="memberName">inbound references</div> | |
90 <div class="memberValue"> | |
91 <template if="{{ inboundReferences == null }}"> | |
92 <eval-link callback="{{ fetchInboundReferences }}" | |
93 label="[find]" | |
94 expr="100"> | |
95 </eval-link> | |
96 </template> | |
97 <template if="{{ inboundReferences != null }}"> | |
98 <template repeat="{{ reference in inboundReferences['references'] }}
"> | |
99 <inbound-reference ref="{{ reference }}"></inbound-reference> | |
100 </template> | |
101 </template> | |
102 </div> | |
103 </div> | |
104 | |
105 </div> | |
106 </template> | |
107 </polymer-element> | |
108 | |
109 <script type="application/dart" src="object_common.dart"></script> | |
OLD | NEW |