| 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 1437 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1448 } else { | 1448 } else { |
| 1449 for (var i = 0; i < names.length; i++) { | 1449 for (var i = 0; i < names.length; i++) { |
| 1450 counters[names[i]] = | 1450 counters[names[i]] = |
| 1451 (counts[i] / sum * 100.0).toStringAsFixed(2) + '%'; | 1451 (counts[i] / sum * 100.0).toStringAsFixed(2) + '%'; |
| 1452 } | 1452 } |
| 1453 } | 1453 } |
| 1454 } | 1454 } |
| 1455 | 1455 |
| 1456 updateHeapsFromMap(map['_heaps']); | 1456 updateHeapsFromMap(map['_heaps']); |
| 1457 _updateBreakpoints(map['breakpoints']); | 1457 _updateBreakpoints(map['breakpoints']); |
| 1458 exceptionsPauseInfo = map['_debuggerSettings']['_exceptions']; | 1458 if (map['_debuggerSettings'] != null) { |
| 1459 exceptionsPauseInfo = map['_debuggerSettings']['_exceptions']; |
| 1460 } else { |
| 1461 exceptionsPauseInfo = "none"; |
| 1462 } |
| 1459 | 1463 |
| 1460 var newPauseEvent = map['pauseEvent']; | 1464 var newPauseEvent = map['pauseEvent']; |
| 1461 assert((pauseEvent == null) || | 1465 assert((pauseEvent == null) || |
| 1462 (newPauseEvent == null) || | 1466 (newPauseEvent == null) || |
| 1463 !newPauseEvent.timestamp.isBefore(pauseEvent.timestamp)); | 1467 !newPauseEvent.timestamp.isBefore(pauseEvent.timestamp)); |
| 1464 pauseEvent = newPauseEvent; | 1468 pauseEvent = newPauseEvent; |
| 1465 _updateRunState(); | 1469 _updateRunState(); |
| 1466 error = map['error']; | 1470 error = map['error']; |
| 1467 | 1471 |
| 1468 libraries.clear(); | 1472 libraries.clear(); |
| (...skipping 2662 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4131 var v = list[i]; | 4135 var v = list[i]; |
| 4132 if ((v is ObservableMap) && _isServiceMap(v)) { | 4136 if ((v is ObservableMap) && _isServiceMap(v)) { |
| 4133 list[i] = owner.getFromMap(v); | 4137 list[i] = owner.getFromMap(v); |
| 4134 } else if (v is ObservableList) { | 4138 } else if (v is ObservableList) { |
| 4135 _upgradeObservableList(v, owner); | 4139 _upgradeObservableList(v, owner); |
| 4136 } else if (v is ObservableMap) { | 4140 } else if (v is ObservableMap) { |
| 4137 _upgradeObservableMap(v, owner); | 4141 _upgradeObservableMap(v, owner); |
| 4138 } | 4142 } |
| 4139 } | 4143 } |
| 4140 } | 4144 } |
| OLD | NEW |