devtools icon indicating copy to clipboard operation
devtools copied to clipboard

[Proposal]Profiling memory usage per isolate

Open srmncnk opened this issue 11 months ago • 4 comments

Use case

I would like to profile memory usage of my app per isolate. Currently in profiler I can't find a way to separate allocations per each isolate. I tried to do it programatically by connecting to the websocket of the profiling session, but even after a few attempts to get allocations per isolate, I don't really trust the results. I'm using flutter_isolate and background_locator plugins which basically create their own FlutterEngine.

Proposal

I'd like to have a combo box in the profiles which separates allocations for each isolate.

srmncnk avatar Jan 09 '25 11:01 srmncnk

Seems like a valid proposal to me

maheshj01 avatar Jan 10 '25 02:01 maheshj01

Is there any workaround for this? I want to profile my app on Android, where I run a foreground service and create a separate FlutterEngine. I don't think profiler covers that separate FlutterEngine / isolate.

srmncnk avatar Feb 04 '25 10:02 srmncnk

In the DevTools Memory tool you can select a target isolate from the selector at the bottom center of DevTools footer:

Image

kenzieschmoll avatar Feb 07 '25 17:02 kenzieschmoll

A customer at Fluttercon showed me this issue in their local setup, so I believe this is still an issue.

elliette avatar Sep 25 '25 15:09 elliette