OLD | NEW |
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 614 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
625 // The list of live isolates, ordered by isolate start time. | 625 // The list of live isolates, ordered by isolate start time. |
626 final ObservableList<Isolate> isolates = new ObservableList<Isolate>(); | 626 final ObservableList<Isolate> isolates = new ObservableList<Isolate>(); |
627 | 627 |
628 @observable String version = 'unknown'; | 628 @observable String version = 'unknown'; |
629 @observable String hostCPU; | 629 @observable String hostCPU; |
630 @observable String targetCPU; | 630 @observable String targetCPU; |
631 @observable int architectureBits; | 631 @observable int architectureBits; |
632 @observable bool assertsEnabled = false; | 632 @observable bool assertsEnabled = false; |
633 @observable bool typeChecksEnabled = false; | 633 @observable bool typeChecksEnabled = false; |
634 @observable int pid = 0; | 634 @observable int pid = 0; |
| 635 @observable int maxRSS = 0; |
635 @observable bool profileVM = false; | 636 @observable bool profileVM = false; |
636 @observable DateTime startTime; | 637 @observable DateTime startTime; |
637 @observable DateTime refreshTime; | 638 @observable DateTime refreshTime; |
638 @observable Duration get upTime { | 639 @observable Duration get upTime { |
639 if (startTime == null) { | 640 if (startTime == null) { |
640 return null; | 641 return null; |
641 } | 642 } |
642 return (new DateTime.now().difference(startTime)); | 643 return (new DateTime.now().difference(startTime)); |
643 } | 644 } |
644 | 645 |
(...skipping 257 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
902 _loaded = true; | 903 _loaded = true; |
903 version = map['version']; | 904 version = map['version']; |
904 hostCPU = map['hostCPU']; | 905 hostCPU = map['hostCPU']; |
905 targetCPU = map['targetCPU']; | 906 targetCPU = map['targetCPU']; |
906 architectureBits = map['architectureBits']; | 907 architectureBits = map['architectureBits']; |
907 int startTimeMillis = map['startTime']; | 908 int startTimeMillis = map['startTime']; |
908 startTime = new DateTime.fromMillisecondsSinceEpoch(startTimeMillis); | 909 startTime = new DateTime.fromMillisecondsSinceEpoch(startTimeMillis); |
909 refreshTime = new DateTime.now(); | 910 refreshTime = new DateTime.now(); |
910 notifyPropertyChange(#upTime, 0, 1); | 911 notifyPropertyChange(#upTime, 0, 1); |
911 pid = map['pid']; | 912 pid = map['pid']; |
| 913 maxRSS = map['_maxRSS']; |
912 profileVM = map['_profilerMode'] == 'VM'; | 914 profileVM = map['_profilerMode'] == 'VM'; |
913 assertsEnabled = map['_assertsEnabled']; | 915 assertsEnabled = map['_assertsEnabled']; |
914 typeChecksEnabled = map['_typeChecksEnabled']; | 916 typeChecksEnabled = map['_typeChecksEnabled']; |
915 _removeDeadIsolates(map['isolates']); | 917 _removeDeadIsolates(map['isolates']); |
916 } | 918 } |
917 | 919 |
918 // Reload all isolates. | 920 // Reload all isolates. |
919 Future reloadIsolates() { | 921 Future reloadIsolates() { |
920 var reloads = []; | 922 var reloads = []; |
921 for (var isolate in isolates) { | 923 for (var isolate in isolates) { |
(...skipping 3335 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4257 var v = list[i]; | 4259 var v = list[i]; |
4258 if ((v is ObservableMap) && _isServiceMap(v)) { | 4260 if ((v is ObservableMap) && _isServiceMap(v)) { |
4259 list[i] = owner.getFromMap(v); | 4261 list[i] = owner.getFromMap(v); |
4260 } else if (v is ObservableList) { | 4262 } else if (v is ObservableList) { |
4261 _upgradeObservableList(v, owner); | 4263 _upgradeObservableList(v, owner); |
4262 } else if (v is ObservableMap) { | 4264 } else if (v is ObservableMap) { |
4263 _upgradeObservableMap(v, owner); | 4265 _upgradeObservableMap(v, owner); |
4264 } | 4266 } |
4265 } | 4267 } |
4266 } | 4268 } |
OLD | NEW |