Expose skia / graphics memory usage
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
b/141566415
Added https://github.com/flutter/flutter/issues/41225 to allow adb connection from DevTools then we can collect a number of statistics.
Is there further work being done to expose these statistics to the user?
Any update?
@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.
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