memory_checker 0.0.3 memory_checker: ^0.0.3 copied to clipboard
To finder memory leak by Dart VM Service。Support for Windows/Linux/Android/iOS, not support for Web.
Usage #
import 'package:memory_checker/memory_checker.dart';
void main() {
runApp(MyApp());
}
class MyApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
return MaterialApp(
...
navigatorObservers: [
LeakObserver()
],
);
}
}
LeakObserver
will notify if there are some leaks found by VMService
Welcome for pr: https://github.com/asjqkkkk/memory_checker/compare
Welcome for issue: https://github.com/asjqkkkk/memory_checker/issues/new