| Index: runtime/observatory/lib/src/elements/object_common.dart
|
| diff --git a/runtime/observatory/lib/src/elements/object_common.dart b/runtime/observatory/lib/src/elements/object_common.dart
|
| index 929ebd6f4200a7b25c04d00ffd0fce55e0d017cd..eea85ffcaf0e5f040952c2ba8f7443185f658f27 100644
|
| --- a/runtime/observatory/lib/src/elements/object_common.dart
|
| +++ b/runtime/observatory/lib/src/elements/object_common.dart
|
| @@ -21,6 +21,7 @@ class ObjectCommonElement extends ObservatoryElement {
|
| // TODO(koda): Add no-arg "calculate-link" instead of reusing "eval-link".
|
| Future<ServiceObject> retainedSize(var dummy) {
|
| return object.isolate.getRetainedSize(object).then((Instance obj) {
|
| + // TODO(turnidge): Handle collected/expired objects gracefully.
|
| retainedBytes = int.parse(obj.valueAsString);
|
| });
|
| }
|
| @@ -38,7 +39,7 @@ class ObjectCommonElement extends ObservatoryElement {
|
| });
|
| }
|
|
|
| - void refresh(Function onDone) {
|
| - object.reload().whenComplete(onDone);
|
| + Future refresh() {
|
| + return object.reload();
|
| }
|
| }
|
|
|