commit | 923215b2394591379137b279f443e0e28b2e5bcc | [log] [tgz] |
---|---|---|
author | John Rodriguez <john.rodriguez@gmail.com> | Sun Jul 24 20:29:59 2016 |
committer | John Rodriguez <john.rodriguez@gmail.com> | Sun Jul 24 20:29:59 2016 |
tree | 77a649aa75f3d7184e524dfc8e64bcf64c830232 | |
parent | 95fcc32388c820830097d9228ae0d02f032b942e [diff] |
Upgrade plugins
“Ha Ha!” - Nelson
HAHA is a Java library to automate the analysis of Android heap dumps.
This project is essentially a repackaging of the work of others to make it available as a small footprint Maven dependency.
To learn how to dump the heap, read the Android documentation. Here's an example:
File heapDumpFile = ... Debug.dumpHprofData(heapDumpFile.getAbsolutePath());
After dumping the heap, use HAHA to parse and analyze it.
HprofBuffer buffer = new MemoryMappedFileBuffer(heapDumpFile); HprofParser parser = new HprofParser(buffer); Snapshot snapshot = parser.parse(); // The rest is up to you. ClassObj someClass = snapshot.findClass("com.example.SomeClass");
dependencies { compile 'com.squareup.haha:haha:2.0.3' }