| Index: runtime/observatory/lib/src/elements/heap_snapshot.dart
|
| diff --git a/runtime/observatory/lib/src/elements/heap_snapshot.dart b/runtime/observatory/lib/src/elements/heap_snapshot.dart
|
| index a9e4a8ef2d8941889ef18ed861dd2dc95f8e17cc..4894e9fcb8d83bf9b6b82071599fe0a75dc3ee3e 100644
|
| --- a/runtime/observatory/lib/src/elements/heap_snapshot.dart
|
| +++ b/runtime/observatory/lib/src/elements/heap_snapshot.dart
|
| @@ -407,8 +407,12 @@ class HeapSnapshotElement extends ObservatoryElement {
|
| var completer = new Completer();
|
| state = "Requesting heap snapshot...";
|
| isolate.getClassRefs();
|
| +
|
| + bool collectGarbage =
|
| + app.locationManager.getBoolParameter('collectGarbage', true);
|
| +
|
| var stopwatch = new Stopwatch()..start();
|
| - isolate.fetchHeapSnapshot().listen((event) {
|
| + isolate.fetchHeapSnapshot(collectGarbage).listen((event) {
|
| if (event is String) {
|
| print("${stopwatch.elapsedMilliseconds} $event");
|
| state = event;
|
|
|