| 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 1489 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1500 String fileAndLine; | 1500 String fileAndLine; |
| 1501 | 1501 |
| 1502 DartError error; | 1502 DartError error; |
| 1503 StreamController _snapshotFetch; | 1503 StreamController _snapshotFetch; |
| 1504 | 1504 |
| 1505 List<ByteData> _chunksInProgress; | 1505 List<ByteData> _chunksInProgress; |
| 1506 | 1506 |
| 1507 List<Thread> get threads => _threads; | 1507 List<Thread> get threads => _threads; |
| 1508 final List<Thread> _threads = new List<Thread>(); | 1508 final List<Thread> _threads = new List<Thread>(); |
| 1509 | 1509 |
| 1510 int get numZoneHandles => _numZoneHandles; |
| 1511 int _numZoneHandles; |
| 1512 |
| 1513 int get numScopedHandles => _numScopedHandles; |
| 1514 int _numScopedHandles; |
| 1515 |
| 1510 void _loadHeapSnapshot(ServiceEvent event) { | 1516 void _loadHeapSnapshot(ServiceEvent event) { |
| 1511 if (_snapshotFetch == null || _snapshotFetch.isClosed) { | 1517 if (_snapshotFetch == null || _snapshotFetch.isClosed) { |
| 1512 // No outstanding snapshot request. Presumably another client asked for a | 1518 // No outstanding snapshot request. Presumably another client asked for a |
| 1513 // snapshot. | 1519 // snapshot. |
| 1514 Logger.root.info("Dropping unsolicited heap snapshot chunk"); | 1520 Logger.root.info("Dropping unsolicited heap snapshot chunk"); |
| 1515 return; | 1521 return; |
| 1516 } | 1522 } |
| 1517 | 1523 |
| 1518 // Occasionally these actually arrive out of order. | 1524 // Occasionally these actually arrive out of order. |
| 1519 var chunkIndex = event.chunkIndex; | 1525 var chunkIndex = event.chunkIndex; |
| (...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1625 if (savedStartTime == null) { | 1631 if (savedStartTime == null) { |
| 1626 vm._buildIsolateList(); | 1632 vm._buildIsolateList(); |
| 1627 } | 1633 } |
| 1628 | 1634 |
| 1629 extensionRPCs.clear(); | 1635 extensionRPCs.clear(); |
| 1630 if (map['extensionRPCs'] != null) { | 1636 if (map['extensionRPCs'] != null) { |
| 1631 extensionRPCs.addAll(map['extensionRPCs']); | 1637 extensionRPCs.addAll(map['extensionRPCs']); |
| 1632 } | 1638 } |
| 1633 | 1639 |
| 1634 threads.clear(); | 1640 threads.clear(); |
| 1635 if(map['threads'] != null) { | 1641 if (map['threads'] != null) { |
| 1636 threads.addAll(map['threads']); | 1642 threads.addAll(map['threads']); |
| 1637 } | 1643 } |
| 1644 |
| 1645 _numZoneHandles = map['_numZoneHandles']; |
| 1646 _numScopedHandles = map['_numScopedHandles']; |
| 1638 } | 1647 } |
| 1639 | 1648 |
| 1640 Future<TagProfile> updateTagProfile() { | 1649 Future<TagProfile> updateTagProfile() { |
| 1641 return isolate.invokeRpcNoUpgrade('_getTagProfile', {}).then((Map map) { | 1650 return isolate.invokeRpcNoUpgrade('_getTagProfile', {}).then((Map map) { |
| 1642 var seconds = new DateTime.now().millisecondsSinceEpoch / 1000.0; | 1651 var seconds = new DateTime.now().millisecondsSinceEpoch / 1000.0; |
| 1643 tagProfile._processTagProfile(seconds, map); | 1652 tagProfile._processTagProfile(seconds, map); |
| 1644 return tagProfile; | 1653 return tagProfile; |
| 1645 }); | 1654 }); |
| 1646 } | 1655 } |
| 1647 | 1656 |
| (...skipping 2843 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4491 var v = list[i]; | 4500 var v = list[i]; |
| 4492 if ((v is Map) && _isServiceMap(v)) { | 4501 if ((v is Map) && _isServiceMap(v)) { |
| 4493 list[i] = owner.getFromMap(v); | 4502 list[i] = owner.getFromMap(v); |
| 4494 } else if (v is List) { | 4503 } else if (v is List) { |
| 4495 _upgradeList(v, owner); | 4504 _upgradeList(v, owner); |
| 4496 } else if (v is Map) { | 4505 } else if (v is Map) { |
| 4497 _upgradeMap(v, owner); | 4506 _upgradeMap(v, owner); |
| 4498 } | 4507 } |
| 4499 } | 4508 } |
| 4500 } | 4509 } |
| OLD | NEW |