In Flutter, how can I check if I am releasing (dispose) everything correctly?
I am building an application and I have the feeling that the simulator is getting slower after a series of hot reloads.
Many thanks for your answers.
Dart comes with a debugger called Observatory
. It does a bit of everything you need. From CPU/Memory usage, to time spent on each functions. Even breakpoints and code coverage.
When running your flutter app, it's available by default on the localhost.
When running flutter run
in the terminal, the port will be displayed.
On vscode with Dart code
extension, you'll need to use the command Open Observatory timeline
.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With