Turn snapshot allocation sites into folded stacks or Speedscope JSON so hot retainers are visible as a flame chart instead of a table.
heapscope snapshot --track-allocations -o snap.json
heapscope flamegraph snap.json --format speedscope -o alloc.jsonHeapScope.flamegraph(snapshot, unit: :count)- CLI:
heapscope flamegraph SNAPSHOT.json [--format folded|speedscope] [--unit count|bytes] [-o PATH]