Shallow vs. Retained: When to Use Which

Shallow size identifies intrinsically large objects, while retained size is crucial for pinpointing memory leaks by revealing the total memory an object prevents from being garbage collected.

Sources

Open the full topic