devtools icon indicating copy to clipboard operation
devtools copied to clipboard

Offline analysis for heap snapshots

Open polina-c opened this issue 2 years ago • 4 comments

We want user to be able to take heap snapshots in release mode and analyze them later in DevTools > Memory > Diff

How to take snapshot in release mode: https://github.com/dart-lang/sdk/blob/main/runtime/tools/heapsnapshot/README.md

polina-c avatar Apr 03 '23 20:04 polina-c

https://avenue-demo.squarespace.com/?nochrome=false

polina-c avatar Apr 03 '23 20:04 polina-c

https://user-images.githubusercontent.com/12115586/236106176-9cbeafbc-f59e-4a40-b34f-c71e9ac2b122.mov

polina-c avatar May 04 '23 03:05 polina-c

Error handling: Screenshot 2023-05-06 at 8 56 53 PM

polina-c avatar May 07 '23 03:05 polina-c

The change was relanded in https://dart-review.googlesource.com/c/sdk/+/304212 but the leak_tracked package was not added to Flutter engine DEPS before adding dependencies on it. This causes failures on monorepo builds and when rolling Dart into engine. Fixed by https://github.com/flutter/engine/pull/42241

whesse avatar May 23 '23 08:05 whesse