native icon indicating copy to clipboard operation
native copied to clipboard

DevTools extension for package:jni

Open HosseinYousefi opened this issue 1 year ago • 1 comments

This could be used for keeping track of the references, identifying leaks, etc.

See: https://medium.com/flutter/dart-flutter-devtools-extensions-c8bc1aaf8e5f

HosseinYousefi avatar Mar 21 '24 00:03 HosseinYousefi

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. Disposables must have their dispose called by the programmer or it's a leak. Finalizables 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. 👍

dcharkes avatar Mar 21 '24 09:03 dcharkes