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

Unified Diff: runtime/observatory/lib/src/elements/native_memory_profiler.dart

Issue 2914283002: Observatory: (Closed)
Patch Set: . Created 3 years, 7 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 side-by-side diff with in-line comments
Download patch
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);
« no previous file with comments | « runtime/observatory/lib/src/elements/heap_map.dart ('k') | runtime/observatory/lib/src/models/objects/isolate.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698