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

Side by Side Diff: runtime/observatory/lib/src/service/object.dart

Issue 2279973002: Converted Observatory heap-map element (Closed)
Patch Set: Fixed tests Created 4 years, 3 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) 2014, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2014, 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 part of service; 5 part of service;
6 6
7 // Some value smaller than the object ring, so requesting a large array 7 // Some value smaller than the object ring, so requesting a large array
8 // doesn't result in an expired ref because the elements lapped it in the 8 // doesn't result in an expired ref because the elements lapped it in the
9 // object ring. 9 // object ring.
10 const int kDefaultFieldLimit = 100; 10 const int kDefaultFieldLimit = 100;
(...skipping 1805 matching lines...) Expand 10 before | Expand all | Expand 10 after
1816 Future refreshMetrics() { 1816 Future refreshMetrics() {
1817 return Future.wait([refreshDartMetrics(), refreshNativeMetrics()]); 1817 return Future.wait([refreshDartMetrics(), refreshNativeMetrics()]);
1818 } 1818 }
1819 1819
1820 String toString() => "Isolate($name)"; 1820 String toString() => "Isolate($name)";
1821 } 1821 }
1822 1822
1823 1823
1824 class NamedField implements M.NamedField { 1824 class NamedField implements M.NamedField {
1825 final String name; 1825 final String name;
1826 final HeapObject value; 1826 final M.ObjectRef value;
1827 NamedField(this.name, this.value); 1827 NamedField(this.name, this.value);
1828 } 1828 }
1829 1829
1830 1830
1831 class ObjectStore extends ServiceObject implements M.ObjectStore { 1831 class ObjectStore extends ServiceObject implements M.ObjectStore {
1832 @observable List<NamedField> fields = new List<NamedField>(); 1832 @observable List<NamedField> fields = new List<NamedField>();
1833 1833
1834 ObjectStore._empty(ServiceObjectOwner owner) : super._empty(owner); 1834 ObjectStore._empty(ServiceObjectOwner owner) : super._empty(owner);
1835 1835
1836 void _update(ObservableMap map, bool mapIsRef) { 1836 void _update(ObservableMap map, bool mapIsRef) {
(...skipping 2460 matching lines...) Expand 10 before | Expand all | Expand 10 after
4297 var v = list[i]; 4297 var v = list[i];
4298 if ((v is ObservableMap) && _isServiceMap(v)) { 4298 if ((v is ObservableMap) && _isServiceMap(v)) {
4299 list[i] = owner.getFromMap(v); 4299 list[i] = owner.getFromMap(v);
4300 } else if (v is ObservableList) { 4300 } else if (v is ObservableList) {
4301 _upgradeObservableList(v, owner); 4301 _upgradeObservableList(v, owner);
4302 } else if (v is ObservableMap) { 4302 } else if (v is ObservableMap) {
4303 _upgradeObservableMap(v, owner); 4303 _upgradeObservableMap(v, owner);
4304 } 4304 }
4305 } 4305 }
4306 } 4306 }
OLDNEW
« no previous file with comments | « runtime/observatory/lib/src/elements/service_view.html ('k') | runtime/observatory/observatory_sources.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698