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