tree: 30c96ac4a15a0b4b3633df984b6cc378fb851fd1
  1. src/
  2. templates/
  3. tests/
  4. BUILD.gn
  5. OWNERS
  6. README.md
tools/dupefinder/README.md

dupefinder

Produces a report on duplicated heap allocations and likely source locations.

To start, collect a heap snapshot (see http://go/fuchsia-heapdump for details):

ffx profile heapdump snapshot \
    --output-file /path/to/symbolized.pb.gz \
    --output-contents-dir /path/to/contents \
    --by-name instrumented-process.cm
    --symbolize

Note that the snapshot must be symbolized to get meaningful results from this tool.

Pass the collected snapshot to dupefinder:

fx dupefinder \
    --profile /path/to/symbolized.pb.gz \
    --contents-dir /path/to/contents \
    --html-output /path/to/dupes_report.html

The report has some basic configuration options, see fx dupefinder --help.