memlab analyze unbound-shape
Get shapes with unbound growth (a class of objects with growing aggregated retained size)
memlab analyze unbound-shape
Example output
$ memlab analyze unbound-shape --snapshot-dir /tmp/memlab-example/series/data/cur
· string: 6506 (35.4KB) > 7162 (58.7KB) > 7162 (58.7KB) > 7402 (63.5KB) > 7402 (63.5KB) > 7642 (68.3KB) > 7642 (68.3KB) > 7882 (73.1KB) > 7882 (73.1KB): @71, @71, @71, @71, @71, @71, @71, @71, @71How to read the output
memlab analyze unbound-shape compares a series of snapshots of the same page and lists the shapes (class and property names) whose total retained size keeps growing.
Each line is the shape, its number of objects and total retained size in each snapshot in order, and one example object id per snapshot. In this example, after the first time the dialog opens, strings grow by 240 every time it opens again: the dialog's row labels, which are still in memory after it closes.
Options
--snapshot-dir: set directory path containing all heap snapshots under analysis
The universal options (--help, --verbose, ...) work with this command too.