Skip to content

0.9.0

Latest

Choose a tag to compare

@agourlay agourlay released this 11 Jun 21:02
· 2 commits to master since this release
6706f1c

Breaking changes

  • The input file is now a positional argument:
    hprof-slurp heap.hprof        # replaces: hprof-slurp -i heap.hprof
  • The JSON output is restructured: new schema_version, tool and dump metadata
    (file, format, id size, capture time) and heap totals; the top-N lists move under heap.

Features

  • New diff subcommand to find leaking classes between two dumps of the same process
    (based on a contribution from @johnneerdael in #304):
    hprof-slurp diff before.hprof after.hprof
  • New --output <path> flag to control the location of the JSON result file.
  • The dump capture time is displayed in the summary and in the JSON output.

Fixes

  • No longer panics on dumps referencing class definitions that were never loaded
    (seen in modern Android dumps); affected objects are reported as <unknown class>
    with an end-of-run warning.
  • No longer panics on stack traces referencing missing frames or class metadata.
  • Output ordering is fully deterministic when the same class is loaded by multiple classloaders.
  • --top is validated by the CLI parser and rejects 0.