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

Unified Diff: runtime/observatory/lib/src/repositories/allocation_profile.dart

Issue 2953373002: [observatory] Add a 'GC' button to heap map. (Closed)
Patch Set: Created 3 years, 6 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/repositories/allocation_profile.dart
diff --git a/runtime/observatory/lib/src/repositories/allocation_profile.dart b/runtime/observatory/lib/src/repositories/allocation_profile.dart
index aedfb3a538fa98927fe14fdaceb7798324ac78c9..77a2caa0fdba93fd8748cf34838fc6647cc1acba 100644
--- a/runtime/observatory/lib/src/repositories/allocation_profile.dart
+++ b/runtime/observatory/lib/src/repositories/allocation_profile.dart
@@ -14,10 +14,10 @@ class AllocationProfileRepository implements M.AllocationProfileRepository {
S.Isolate isolate = i as S.Isolate;
assert(isolate != null);
var params = {};
- if (gc == true) {
+ if (gc) {
params['gc'] = 'full';
}
- if (reset == true) {
+ if (reset) {
params['reset'] = true;
}
final response = await isolate.invokeRpc(_api, params);
« no previous file with comments | « runtime/observatory/lib/src/elements/heap_map.dart ('k') | runtime/observatory/tests/service/service_test_common.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698