8000 Release 0.6.0 · agourlay/hprof-slurp · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

0.6.0

Latest
Compare
Choose a tag to compare
@agourlay agourlay released this 04 May 07:55
· 6 commits to master since this release
b867b54
  • New feature to export result as JSON to enable further processing (#248).

For now until the memory usage is exported.

./hprof-slurp -i "test-heap-dumps/hprof-64.bin" --top 3 --json

The result is written to a file.

less hprof-slurp.json | grep jq .
{
  "top_allocated_classes": [
    {
      "class_name": "int[]",
      "instance_count": 436,
      "largest_allocation_bytes": 650016,
      "allocation_size_bytes": 2091112
    },
    {
      "class_name": "char[]",
      "instance_count": 1991,
      "largest_allocation_bytes": 16400,
      "allocation_size_bytes": 201842
    },
    {
      "class_name": "byte[]",
      "instance_count": 443,
      "largest_allocation_bytes": 8208,
      "allocation_size_bytes": 87294
    }
  ],
  "top_largest_instances": [..]
}
0