| Index: runtime/observatory/lib/src/elements/heap_map.dart
|
| diff --git a/runtime/observatory/lib/src/elements/heap_map.dart b/runtime/observatory/lib/src/elements/heap_map.dart
|
| index fc33a5c5001d5e9b3f18ea3f487ef3ae99a4c2bf..631b7801a58e9d1db43b731862ffc7063ab9da42 100644
|
| --- a/runtime/observatory/lib/src/elements/heap_map.dart
|
| +++ b/runtime/observatory/lib/src/elements/heap_map.dart
|
| @@ -161,9 +161,7 @@ class HeapMapElement extends ObservatoryElement {
|
| void _handleClick(MouseEvent event) {
|
| var address = _objectAt(event.offset).address.toRadixString(16);
|
| isolate.getObjectByAddress(address).then((result) {
|
| - if (result is DartError) {
|
| - Logger.root.severe(result.message);
|
| - } else if (result.type != 'Sentinel') {
|
| + if (result.type != 'Sentinel') {
|
| app.locationManager.go(gotoLink('/inspect', result));
|
| }
|
| });
|
| @@ -234,16 +232,14 @@ class HeapMapElement extends ObservatoryElement {
|
| });
|
| }
|
|
|
| - void refresh(var done) {
|
| + Future refresh() {
|
| if (isolate == null) {
|
| - return;
|
| + return new Future.value(null);
|
| }
|
| - isolate.invokeRpc('getHeapMap', {}).then((ServiceMap response) {
|
| + return isolate.invokeRpc('getHeapMap', {}).then((ServiceMap response) {
|
| assert(response['type'] == 'HeapMap');
|
| fragmentation = response;
|
| - }).catchError((e, st) {
|
| - Logger.root.info('$e $st');
|
| - }).whenComplete(done);
|
| + });
|
| }
|
|
|
| void fragmentationChanged(oldValue) {
|
|
|