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

Side by Side Diff: runtime/observatory/lib/src/elements/megamorphiccache_view.dart

Issue 2873013004: Omnibus Observatory UI fixes: (Closed)
Patch Set: Created 3 years, 7 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 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 library megamorphiccache_view; 5 library megamorphiccache_view;
6 6
7 import 'dart:async'; 7 import 'dart:async';
8 import 'dart:html'; 8 import 'dart:html';
9 import 'package:observatory/models.dart' as M; 9 import 'package:observatory/models.dart' as M;
10 import 'package:observatory/src/elements/context_ref.dart'; 10 import 'package:observatory/src/elements/context_ref.dart';
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
45 M.VM _vm; 45 M.VM _vm;
46 M.IsolateRef _isolate; 46 M.IsolateRef _isolate;
47 M.EventRepository _events; 47 M.EventRepository _events;
48 M.NotificationRepository _notifications; 48 M.NotificationRepository _notifications;
49 M.MegamorphicCache _cache; 49 M.MegamorphicCache _cache;
50 M.MegamorphicCacheRepository _caches; 50 M.MegamorphicCacheRepository _caches;
51 M.RetainedSizeRepository _retainedSizes; 51 M.RetainedSizeRepository _retainedSizes;
52 M.ReachableSizeRepository _reachableSizes; 52 M.ReachableSizeRepository _reachableSizes;
53 M.InboundReferencesRepository _references; 53 M.InboundReferencesRepository _references;
54 M.RetainingPathRepository _retainingPaths; 54 M.RetainingPathRepository _retainingPaths;
55 M.InstanceRepository _instances; 55 M.ObjectRepository _objects;
56 56
57 M.VMRef get vm => _vm; 57 M.VMRef get vm => _vm;
58 M.IsolateRef get isolate => _isolate; 58 M.IsolateRef get isolate => _isolate;
59 M.NotificationRepository get notifications => _notifications; 59 M.NotificationRepository get notifications => _notifications;
60 M.MegamorphicCache get cache => _cache; 60 M.MegamorphicCache get cache => _cache;
61 61
62 factory MegamorphicCacheViewElement( 62 factory MegamorphicCacheViewElement(
63 M.VM vm, 63 M.VM vm,
64 M.IsolateRef isolate, 64 M.IsolateRef isolate,
65 M.MegamorphicCache cache, 65 M.MegamorphicCache cache,
66 M.EventRepository events, 66 M.EventRepository events,
67 M.NotificationRepository notifications, 67 M.NotificationRepository notifications,
68 M.MegamorphicCacheRepository caches, 68 M.MegamorphicCacheRepository caches,
69 M.RetainedSizeRepository retainedSizes, 69 M.RetainedSizeRepository retainedSizes,
70 M.ReachableSizeRepository reachableSizes, 70 M.ReachableSizeRepository reachableSizes,
71 M.InboundReferencesRepository references, 71 M.InboundReferencesRepository references,
72 M.RetainingPathRepository retainingPaths, 72 M.RetainingPathRepository retainingPaths,
73 M.InstanceRepository instances, 73 M.ObjectRepository objects,
74 {RenderingQueue queue}) { 74 {RenderingQueue queue}) {
75 assert(vm != null); 75 assert(vm != null);
76 assert(isolate != null); 76 assert(isolate != null);
77 assert(events != null); 77 assert(events != null);
78 assert(notifications != null); 78 assert(notifications != null);
79 assert(cache != null); 79 assert(cache != null);
80 assert(caches != null); 80 assert(caches != null);
81 assert(retainedSizes != null); 81 assert(retainedSizes != null);
82 assert(reachableSizes != null); 82 assert(reachableSizes != null);
83 assert(references != null); 83 assert(references != null);
84 assert(retainingPaths != null); 84 assert(retainingPaths != null);
85 assert(instances != null); 85 assert(objects != null);
86 MegamorphicCacheViewElement e = document.createElement(tag.name); 86 MegamorphicCacheViewElement e = document.createElement(tag.name);
87 e._r = new RenderingScheduler(e, queue: queue); 87 e._r = new RenderingScheduler(e, queue: queue);
88 e._vm = vm; 88 e._vm = vm;
89 e._isolate = isolate; 89 e._isolate = isolate;
90 e._events = events; 90 e._events = events;
91 e._notifications = notifications; 91 e._notifications = notifications;
92 e._cache = cache; 92 e._cache = cache;
93 e._caches = caches; 93 e._caches = caches;
94 e._retainedSizes = retainedSizes; 94 e._retainedSizes = retainedSizes;
95 e._reachableSizes = reachableSizes; 95 e._reachableSizes = reachableSizes;
96 e._references = references; 96 e._references = references;
97 e._retainingPaths = retainingPaths; 97 e._retainingPaths = retainingPaths;
98 e._instances = instances; 98 e._objects = objects;
99 return e; 99 return e;
100 } 100 }
101 101
102 MegamorphicCacheViewElement.created() : super.created(); 102 MegamorphicCacheViewElement.created() : super.created();
103 103
104 @override 104 @override
105 attached() { 105 attached() {
106 super.attached(); 106 super.attached();
107 _r.enable(); 107 _r.enable();
108 } 108 }
(...skipping 19 matching lines...) Expand all
128 _r.dirty(); 128 _r.dirty();
129 }), 129 }),
130 new NavNotifyElement(_notifications, queue: _r.queue) 130 new NavNotifyElement(_notifications, queue: _r.queue)
131 ]), 131 ]),
132 new DivElement() 132 new DivElement()
133 ..classes = ['content-centered-big'] 133 ..classes = ['content-centered-big']
134 ..children = [ 134 ..children = [
135 new HeadingElement.h2()..text = 'Megamorphic Cache', 135 new HeadingElement.h2()..text = 'Megamorphic Cache',
136 new HRElement(), 136 new HRElement(),
137 new ObjectCommonElement(_isolate, _cache, _retainedSizes, 137 new ObjectCommonElement(_isolate, _cache, _retainedSizes,
138 _reachableSizes, _references, _retainingPaths, _instances, 138 _reachableSizes, _references, _retainingPaths, _objects,
139 queue: _r.queue), 139 queue: _r.queue),
140 new BRElement(), 140 new BRElement(),
141 new DivElement() 141 new DivElement()
142 ..classes = ['memberList'] 142 ..classes = ['memberList']
143 ..children = [ 143 ..children = [
144 new DivElement() 144 new DivElement()
145 ..classes = ['memberItem'] 145 ..classes = ['memberItem']
146 ..children = [ 146 ..children = [
147 new DivElement() 147 new DivElement()
148 ..classes = ['memberName'] 148 ..classes = ['memberName']
(...skipping 14 matching lines...) Expand all
163 ], 163 ],
164 new DivElement() 164 new DivElement()
165 ..classes = ['memberItem'] 165 ..classes = ['memberItem']
166 ..children = [ 166 ..children = [
167 new DivElement() 167 new DivElement()
168 ..classes = ['memberName'] 168 ..classes = ['memberName']
169 ..text = 'buckets', 169 ..text = 'buckets',
170 new DivElement() 170 new DivElement()
171 ..classes = ['memberName'] 171 ..classes = ['memberName']
172 ..children = [ 172 ..children = [
173 anyRef(_isolate, _cache.buckets, _instances, 173 anyRef(_isolate, _cache.buckets, _objects,
174 queue: _r.queue) 174 queue: _r.queue)
175 ] 175 ]
176 ], 176 ],
177 new DivElement() 177 new DivElement()
178 ..classes = ['memberItem'] 178 ..classes = ['memberItem']
179 ..children = [ 179 ..children = [
180 new DivElement() 180 new DivElement()
181 ..classes = ['memberName'] 181 ..classes = ['memberName']
182 ..text = 'argumentsDescriptor', 182 ..text = 'argumentsDescriptor',
183 new DivElement() 183 new DivElement()
184 ..classes = ['memberName'] 184 ..classes = ['memberName']
185 ..children = [ 185 ..children = [
186 anyRef(_isolate, _cache.argumentsDescriptor, _instances, 186 anyRef(_isolate, _cache.argumentsDescriptor, _objects,
187 queue: _r.queue) 187 queue: _r.queue)
188 ] 188 ]
189 ] 189 ]
190 ], 190 ],
191 new HRElement(), 191 new HRElement(),
192 new ViewFooterElement(queue: _r.queue) 192 new ViewFooterElement(queue: _r.queue)
193 ] 193 ]
194 ]; 194 ];
195 } 195 }
196 } 196 }
OLDNEW
« no previous file with comments | « runtime/observatory/lib/src/elements/library_view.dart ('k') | runtime/observatory/lib/src/elements/object_common.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698