| 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 652 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 663 final Map<String, Isolate> _isolateCache = <String, Isolate>{}; | 663 final Map<String, Isolate> _isolateCache = <String, Isolate>{}; |
| 664 | 664 |
| 665 // The list of live isolates, ordered by isolate start time. | 665 // The list of live isolates, ordered by isolate start time. |
| 666 final List<Isolate> isolates = <Isolate>[]; | 666 final List<Isolate> isolates = <Isolate>[]; |
| 667 | 667 |
| 668 final List<Service> services = <Service>[]; | 668 final List<Service> services = <Service>[]; |
| 669 | 669 |
| 670 String version = 'unknown'; | 670 String version = 'unknown'; |
| 671 String hostCPU; | 671 String hostCPU; |
| 672 String targetCPU; | 672 String targetCPU; |
| 673 String embedder; |
| 673 int architectureBits; | 674 int architectureBits; |
| 674 bool assertsEnabled = false; | 675 bool assertsEnabled = false; |
| 675 bool typeChecksEnabled = false; | 676 bool typeChecksEnabled = false; |
| 676 int nativeZoneMemoryUsage = 0; | 677 int nativeZoneMemoryUsage = 0; |
| 677 int pid = 0; | 678 int pid = 0; |
| 678 int heapAllocatedMemoryUsage = 0; | 679 int heapAllocatedMemoryUsage = 0; |
| 679 int heapAllocationCount = 0; | 680 int heapAllocationCount = 0; |
| 680 int maxRSS = 0; | 681 int maxRSS; |
| 682 int currentRSS; |
| 681 bool profileVM = false; | 683 bool profileVM = false; |
| 682 DateTime startTime; | 684 DateTime startTime; |
| 683 DateTime refreshTime; | 685 DateTime refreshTime; |
| 684 Duration get upTime { | 686 Duration get upTime { |
| 685 if (startTime == null) { | 687 if (startTime == null) { |
| 686 return null; | 688 return null; |
| 687 } | 689 } |
| 688 return (new DateTime.now().difference(startTime)); | 690 return (new DateTime.now().difference(startTime)); |
| 689 } | 691 } |
| 690 | 692 |
| (...skipping 283 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 974 if (map['_nativeZoneMemoryUsage'] != null) { | 976 if (map['_nativeZoneMemoryUsage'] != null) { |
| 975 nativeZoneMemoryUsage = map['_nativeZoneMemoryUsage']; | 977 nativeZoneMemoryUsage = map['_nativeZoneMemoryUsage']; |
| 976 } | 978 } |
| 977 pid = map['pid']; | 979 pid = map['pid']; |
| 978 if (map['_heapAllocatedMemoryUsage'] != null) { | 980 if (map['_heapAllocatedMemoryUsage'] != null) { |
| 979 heapAllocatedMemoryUsage = map['_heapAllocatedMemoryUsage']; | 981 heapAllocatedMemoryUsage = map['_heapAllocatedMemoryUsage']; |
| 980 } | 982 } |
| 981 if (map['_heapAllocationCount'] != null) { | 983 if (map['_heapAllocationCount'] != null) { |
| 982 heapAllocationCount = map['_heapAllocationCount']; | 984 heapAllocationCount = map['_heapAllocationCount']; |
| 983 } | 985 } |
| 986 embedder = map['_embedder']; |
| 984 maxRSS = map['_maxRSS']; | 987 maxRSS = map['_maxRSS']; |
| 988 currentRSS = map['_currentRSS']; |
| 985 profileVM = map['_profilerMode'] == 'VM'; | 989 profileVM = map['_profilerMode'] == 'VM'; |
| 986 assertsEnabled = map['_assertsEnabled']; | 990 assertsEnabled = map['_assertsEnabled']; |
| 987 typeChecksEnabled = map['_typeChecksEnabled']; | 991 typeChecksEnabled = map['_typeChecksEnabled']; |
| 988 _removeDeadIsolates(map['isolates']); | 992 _removeDeadIsolates(map['isolates']); |
| 989 } | 993 } |
| 990 | 994 |
| 991 // Reload all isolates. | 995 // Reload all isolates. |
| 992 Future reloadIsolates() { | 996 Future reloadIsolates() { |
| 993 var reloads = []; | 997 var reloads = []; |
| 994 for (var isolate in isolates) { | 998 for (var isolate in isolates) { |
| (...skipping 3704 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4699 final String alias; | 4703 final String alias; |
| 4700 final String method; | 4704 final String method; |
| 4701 final String service; | 4705 final String service; |
| 4702 | 4706 |
| 4703 Service(this.alias, this.method, this.service) { | 4707 Service(this.alias, this.method, this.service) { |
| 4704 assert(this.alias != null); | 4708 assert(this.alias != null); |
| 4705 assert(this.method != null); | 4709 assert(this.method != null); |
| 4706 assert(this.service != null); | 4710 assert(this.service != null); |
| 4707 } | 4711 } |
| 4708 } | 4712 } |
| OLD | NEW |