flutter / devtools

Performance tools for Flutter
https://flutter.dev/docs/development/tools/devtools/
BSD 3-Clause "New" or "Revised" License
1.55k stars 319 forks source link

DartDevTools memory view get very slow after some tracking #4224

Open jodinathan opened 2 years ago

jodinathan commented 2 years ago

I am trying the DDT to debug the memory usage of a console application but the UI gets unusable after couple rounds of tracking.

To reproduce just create any console app that generates many objects, start it with --observe, open the DDT memory panel, access the allocation tab, click the tracking button. Once it refreshes, click to order by bytes or count ordered by greatest. Mark checked the most allocated object from the list. Get back to the app and make it allocate some objects. Get back to DDT and click tracking again. In the panel below, click to list the object with most instances allocated. Try to use the scrollbar. Try to click any instance to see the stack trace. Get nuts.

Dart SDK version: 2.17.5 (stable) (Tue Jun 21 11:05:10 2022 +0200) on "macos_x64"

kenzieschmoll commented 2 years ago

@polina-c

polina-c commented 2 years ago

This is known issue. We are working to provide alternative ways to analyze memory.