Open HosseinYousefi opened 8 months ago
Did you mean the use of https://pub.dev/packages/leak_tracker in there?
I remember having a discussion with @polina-c before about the difference between Finalizable
and Disposable
(https://pub.dev/documentation/w_common/latest/disposable/Disposable-class.html) before. E.g. Disposable
s must have their dispose
called by the programmer or it's a leak. Finalizable
s can have their release
/free
called eagerly. (I think the tricky part with finalizable's is probably not the GC or eager release, but cyclic reference between Java and Dart.)
Possibly we could hook stuff up to the leak tracker. 👍
This could be used for keeping track of the references, identifying leaks, etc.
See: https://medium.com/flutter/dart-flutter-devtools-extensions-c8bc1aaf8e5f