Chromium Code Reviews| 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 1627 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1638 extensionRPCs.clear(); | 1638 extensionRPCs.clear(); |
| 1639 if (map['extensionRPCs'] != null) { | 1639 if (map['extensionRPCs'] != null) { |
| 1640 extensionRPCs.addAll(map['extensionRPCs']); | 1640 extensionRPCs.addAll(map['extensionRPCs']); |
| 1641 } | 1641 } |
| 1642 | 1642 |
| 1643 threads.clear(); | 1643 threads.clear(); |
| 1644 if(map['_threads'] != null) { | 1644 if(map['_threads'] != null) { |
| 1645 threads.addAll(map['_threads']); | 1645 threads.addAll(map['_threads']); |
| 1646 } | 1646 } |
| 1647 | 1647 |
| 1648 _memoryHighWatermark = int.parse(map['_memoryHighWatermark']); | 1648 print("Threads:"); |
|
Cutch
2017/01/25 00:04:46
remove debug code
bkonyi
2017/01/25 00:27:13
Done.
| |
| 1649 print(map['_threads']); | |
| 1649 | 1650 |
| 1650 if (map['threads'] != null) { | 1651 _memoryHighWatermark = 0; |
| 1651 threads.addAll(map['threads']); | 1652 for (var i = 0; i < threads.length; i++) { |
| 1653 _memoryHighWatermark += threads[i].memoryHighWatermark; | |
|
Cutch
2017/01/25 00:04:46
This is different than the C code which sums the t
bkonyi
2017/01/25 00:27:13
Done.
| |
| 1652 } | 1654 } |
| 1653 | 1655 |
| 1654 _numZoneHandles = map['_numZoneHandles']; | 1656 _numZoneHandles = map['_numZoneHandles']; |
| 1655 _numScopedHandles = map['_numScopedHandles']; | 1657 _numScopedHandles = map['_numScopedHandles']; |
| 1656 } | 1658 } |
| 1657 | 1659 |
| 1658 Future<TagProfile> updateTagProfile() { | 1660 Future<TagProfile> updateTagProfile() { |
| 1659 return isolate.invokeRpcNoUpgrade('_getTagProfile', {}).then((Map map) { | 1661 return isolate.invokeRpcNoUpgrade('_getTagProfile', {}).then((Map map) { |
| 1660 var seconds = new DateTime.now().millisecondsSinceEpoch / 1000.0; | 1662 var seconds = new DateTime.now().millisecondsSinceEpoch / 1000.0; |
| 1661 tagProfile._processTagProfile(seconds, map); | 1663 tagProfile._processTagProfile(seconds, map); |
| (...skipping 2852 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 4514 var v = list[i]; | 4516 var v = list[i]; |
| 4515 if ((v is Map) && _isServiceMap(v)) { | 4517 if ((v is Map) && _isServiceMap(v)) { |
| 4516 list[i] = owner.getFromMap(v); | 4518 list[i] = owner.getFromMap(v); |
| 4517 } else if (v is List) { | 4519 } else if (v is List) { |
| 4518 _upgradeList(v, owner); | 4520 _upgradeList(v, owner); |
| 4519 } else if (v is Map) { | 4521 } else if (v is Map) { |
| 4520 _upgradeMap(v, owner); | 4522 _upgradeMap(v, owner); |
| 4521 } | 4523 } |
| 4522 } | 4524 } |
| 4523 } | 4525 } |
| OLD | NEW |