Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(57)

Side by Side Diff: runtime/observatory/lib/src/service/object.dart

Issue 2180613002: vm-service: Include pauseEvent even when running without debugger support. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | runtime/vm/isolate.cc » ('j') | runtime/vm/isolate.cc » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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 }
OLDNEW
« no previous file with comments | « no previous file | runtime/vm/isolate.cc » ('j') | runtime/vm/isolate.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698