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