devtools icon indicating copy to clipboard operation
devtools copied to clipboard

Expose skia / graphics memory usage

Open jacob314 opened this issue 6 years ago • 6 comments

Currently how much memory skia is using to render a Flutter application is a blackbox. We should should show the total memory used by skia and some breakdown of what the memory is being used for in the memory screen.

Fyi @terrylucas

jacob314 avatar Sep 24 '19 18:09 jacob314

b/141566415

jkurtw avatar Sep 24 '19 21:09 jkurtw

Added https://github.com/flutter/flutter/issues/41225 to allow adb connection from DevTools then we can collect a number of statistics.

terrylucas avatar Sep 24 '19 21:09 terrylucas

Is there further work being done to expose these statistics to the user?

jkurtw avatar Oct 22 '19 17:10 jkurtw

Any update?

jkurtw avatar Nov 06 '19 00:11 jkurtw

@terrylucas - I'm concerned about the ADB approach. It is likely to inconsistently sample, and it could easily miss important spikes that are cleaned up within 1s.

Ideally, devtools would be able to get the total native memory usage from the app under test, and it would be able to do this in an OS-independent way (e.g. works on iOS, Android, Desktop). Perhaps it could even work for web as well, for whatever it means on web (maybe Chrome only?).

See also https://github.com/flutter/flutter/issues/6500

The basic problem I'm concerned with is that it's easy for a Flutter app to get OOM killed, and it's hard for a typical Flutter developer to realize why.

dnfield avatar Mar 04 '20 23:03 dnfield

Example issue that a user referenced with the request to include all memory used (e.g. graphics memory): https://github.com/flutter/flutter/issues/102140

kenzieschmoll avatar Nov 17 '23 18:11 kenzieschmoll