Hunting Leaks

Different tools and techniques are used to hunt leaks:

Tools

Description

Bloatview

BloatView is a tool that shows information about cumulative memory usage and leaks.

Refcount Tracing and Balancing

Refcount tracing and balancing are advanced techniques for tracking down leak of refcounted objects found with BloatView.

GC and CC logs

Garbage collector (GC) and cycle collector (CC) logs give information about why various JS and C++ objects are alive in the heap.

Using CC logs for leaked until shutdown leaks

An introduction to leaked until shutdown leaks and how to use CC logs to investigate them.

DMD heap scan mode

Heap profiler within Firefox