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

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

Issue 2250793004: Observatory: Report peak process memory usage. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: sync Created 4 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
« no previous file with comments | « runtime/observatory/lib/src/elements/vm_view.html ('k') | runtime/vm/os.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 614 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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
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 }
OLDNEW
« no previous file with comments | « runtime/observatory/lib/src/elements/vm_view.html ('k') | runtime/vm/os.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698