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

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

Issue 2996353002: Restyle Observatory Memory Dashboard buttons (Closed)
Patch Set: Better layout Created 3 years, 4 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) 2017, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2017, 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 /// This Element is part of MemoryDashboardElement. 5 /// This Element is part of MemoryDashboardElement.
6 /// 6 ///
7 /// The Element is stripped down version of AllocationProfileElement where 7 /// The Element is stripped down version of AllocationProfileElement where
8 /// concepts like old and new space has been hidden away. 8 /// concepts like old and new space has been hidden away.
9 /// 9 ///
10 /// For each class in the system it is shown the Total number of instances 10 /// For each class in the system it is shown the Total number of instances
(...skipping 153 matching lines...) Expand 10 before | Expand all | Expand 10 after
164 final resetAccumulators = new ButtonElement(); 164 final resetAccumulators = new ButtonElement();
165 return [ 165 return [
166 new DivElement() 166 new DivElement()
167 ..classes = ['collection-item'] 167 ..classes = ['collection-item']
168 ..children = [ 168 ..children = [
169 new SpanElement() 169 new SpanElement()
170 ..classes = ['group'] 170 ..classes = ['group']
171 ..children = [ 171 ..children = [
172 new Text('Since Last '), 172 new Text('Since Last '),
173 resetAccumulators 173 resetAccumulators
174 ..text = 'Reset' 174 ..text = 'Reset'
175 ..title = 'Reset' 175 ..title = 'Reset'
176 ..onClick.listen((_) async { 176 ..onClick.listen((_) async {
177 resetAccumulators.disabled = true; 177 resetAccumulators.disabled = true;
178 await _refresh(reset: true); 178 await _refresh(reset: true);
179 resetAccumulators.disabled = false; 179 resetAccumulators.disabled = false;
180 }) 180 })
181 ], 181 ],
182 new SpanElement() 182 new SpanElement()
183 ..classes = ['group'] 183 ..classes = ['group']
184 ..text = 'Current' 184 ..text = 'Current'
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
252 252
253 static int _getAccumulatedSize(M.ClassHeapStats s) => 253 static int _getAccumulatedSize(M.ClassHeapStats s) =>
254 s.newSpace.accumulated.bytes + s.oldSpace.accumulated.bytes; 254 s.newSpace.accumulated.bytes + s.oldSpace.accumulated.bytes;
255 static int _getAccumulatedInstances(M.ClassHeapStats s) => 255 static int _getAccumulatedInstances(M.ClassHeapStats s) =>
256 s.newSpace.accumulated.instances + s.oldSpace.accumulated.instances; 256 s.newSpace.accumulated.instances + s.oldSpace.accumulated.instances;
257 static int _getCurrentSize(M.ClassHeapStats s) => 257 static int _getCurrentSize(M.ClassHeapStats s) =>
258 s.newSpace.current.bytes + s.oldSpace.current.bytes; 258 s.newSpace.current.bytes + s.oldSpace.current.bytes;
259 static int _getCurrentInstances(M.ClassHeapStats s) => 259 static int _getCurrentInstances(M.ClassHeapStats s) =>
260 s.newSpace.current.instances + s.oldSpace.current.instances; 260 s.newSpace.current.instances + s.oldSpace.current.instances;
261 } 261 }
OLDNEW
« no previous file with comments | « runtime/observatory/lib/src/elements/css/shared.css ('k') | runtime/observatory/lib/src/elements/memory/profile.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698