| Index: runtime/observatory/lib/src/elements/native_memory_profiler.dart
|
| diff --git a/runtime/observatory/lib/src/elements/native_memory_profiler.dart b/runtime/observatory/lib/src/elements/native_memory_profiler.dart
|
| index 2820afe90ab423032a7a402ad86d67a8c3394bcf..4ce047e47ed886d3b6a24a0b0fb7bbe9cccc0735 100644
|
| --- a/runtime/observatory/lib/src/elements/native_memory_profiler.dart
|
| +++ b/runtime/observatory/lib/src/elements/native_memory_profiler.dart
|
| @@ -51,8 +51,6 @@ class NativeMemoryProfileElement extends HtmlElement implements Renderable {
|
|
|
| M.NotificationRepository get notifications => _notifications;
|
| M.NativeMemorySampleProfileRepository get profiles => _profiles;
|
| - // With non-isolate version.
|
| - M.VMRef get vm => _vm;
|
|
|
| factory NativeMemoryProfileElement(
|
| M.VM vm,
|
| @@ -143,8 +141,8 @@ class NativeMemoryProfileElement extends HtmlElement implements Renderable {
|
| }
|
|
|
| Future _request({bool forceFetch: false}) async {
|
| - for (Isolate isolate in vm.isolates) {
|
| - await isolate.invokeRpc("_collectAllGarbage", {});
|
| + for (M.Isolate isolate in _vm.isolates) {
|
| + await isolate.collectAllGarbage();
|
| }
|
| _progress = null;
|
| _progressStream = _profiles.get(_vm, _tag, forceFetch: forceFetch);
|
|
|