how to profile memory usage in dart apps? how to profile memory usage in dart apps? dart dart

how to profile memory usage in dart apps?


The normal memory view that is used for JavaScript applications does not work with Dart.

You can use the "Heap Profile" option in the Dart Observatory. It is a build in feature of the DartVM. If you are using Dartium you can access it via the DevTools, there is a tab that is called "Observatory".

But it also work in the standalone DartVM. You have a command line option to activate it, or if you are using the Dart Editor, you can activate it in the launch configuration of you app.

The Dart Observatory is quite new since the dev channel versions of 1.4 and is not completely finished, you might have to upgrade. There is no documentation available yet.