Both leaks and bloats, when large,
cause an application to crash with an out-of-memory error.
However, leaks are more likely to cause memory issues,
because even a small leak,
if repeated many times, leads to a crash.

Memory view guide

The DevTools memory view helps you investigate
memory allocations (both in the heap and external),
memory leaks, memory bloat, and more. The view
has the following features:

Expandable chart

Get a high-level trace of memory allocation,
and view both standard events (like garbage collection)
and custom events (like image allocation).

Profile tab

See current memory allocation listed by class and
memory type (Dart or external/native).

Diff tab

Detect and investigate a feature’s memory management issues.

Trace tab

Investigate a feature’s memory management for
a specified set of classes.

Expandable chart