• Home
Name Date Size #Lines LOC

..--

etc/03-May-2024-772666

src/03-May-2024-12,9507,190

Android.bpD03-May-20241.3 KiB4138

Android.mkD03-May-20246.2 KiB157100

README.txtD03-May-20244.8 KiB137110

TEST_MAPPINGD03-May-202464 87

ahatD03-May-2024707 211

ahat-tests.xmlD03-May-20241 KiB249

README.txt

1AHAT - Android Heap Analysis Tool
2
3Usage:
4  java -jar ahat.jar [OPTIONS] FILE
5    Launch an http server for viewing the given Android heap dump FILE.
6
7  OPTIONS:
8    -p <port>
9       Serve pages on the given port. Defaults to 7100.
10    --proguard-map FILE
11       Use the proguard map FILE to deobfuscate the heap dump.
12    --baseline FILE
13       Diff the heap dump against the given baseline heap dump FILE.
14    --baseline-proguard-map FILE
15       Use the proguard map FILE to deobfuscate the baseline heap dump.
16    --retained [strong | soft | finalizer | weak | phantom | unreachable]
17       The weakest reachability of instances to treat as retained.
18       Defaults to soft
19
20TODO:
21 * Add a user guide.
22 * Dim 'image' and 'zygote' heap sizes slightly? Why do we even show these?
23 * Let user re-sort sites objects info by clicking column headers.
24 * Let user re-sort "Objects" list.
25 * Show site context and heap and class filter in "Objects" view?
26 * Have a menu at the top of an object view with links to the sections?
27 * Include ahat version and hprof file in the menu at the top of the page?
28 * Heaped Table
29   - Make sortable by clicking on headers.
30 * For HeapTable with single heap shown, the heap name isn't centered?
31 * Consistently document functions.
32 * Show version number with --version.
33 * Show somewhere where to send bugs.
34 * Include a link to /objects in the overview and menu?
35 * Turn on LOCAL_JAVACFLAGS := -Xlint:unchecked -Werror
36
37 * [low priority] by site allocations won't line up if the stack has been
38   truncated. Is there any way to manually line them up in that case?
39
40Things to Test:
41 * That we can open a hprof without an 'app' heap and show a tabulation of
42   objects normally sorted by 'app' heap by default.
43 * Visit /objects without parameters and verify it doesn't throw an exception.
44 * Visit /objects with an invalid site, verify it doesn't throw an exception.
45 * That we can view the list of all objects in a reasonably short amount of
46   time.
47 * That we don't show the 'extra' column in the DominatedList if we are
48   showing all the instances.
49 * Instance.getDexCacheLocation
50
51Reported Issues:
52 * Request to be able to sort tables by size.
53
54Release History:
55 1.7 Pending
56
57 1.6 July 24, 2018
58   Distinguish between soft/weak/phantom/etc references.
59   Annotate $classOverhead byte[] arrays with their class.
60   Show progress of heap dump processing.
61   Add --retained command line option to ahat.
62   Support heap dumps generated with HotSpotDiagnosticMXBean.
63   Updated public APIs for dominators computation, reachability and parser.
64   AhatInstance no longer implements DominatorsComputation.Node
65   Bug fixes.
66
67 1.5 December 05, 2017
68   Distinguish between weakly reachable and unreachable instances.
69   Allow hex ids to be used for objects in query parameters.
70   Restore old presentation of sample paths from gc roots.
71   Fix bug in selection of sample paths from gc root.
72   Fix bug in proguard deobfuscation of stack frames.
73   Tighten up and document ahat public API.
74
75 1.4 October 03, 2017
76   Give better error messages on failure to launch ahat.
77   Properly mark thread and non-default root objects as roots.
78   Improve startup performance, in some cases significantly.
79   Other miscellaneous bug fixes.
80
81 1.3.1 August 22, 2017
82   Don't include weak references in sample paths.
83
84 1.3 July 25, 2017
85   Improve diffing of static and instance fields.
86   Improve startup performance by roughly 25%.
87
88 1.2 May 26, 2017
89   Show registered native sizes of objects.
90   Simplify presentation of sample path from gc root.
91
92 1.1 Feb 21, 2017
93   Show java.lang.ref.Reference referents as "unreachable" instead of null.
94
95 1.0 Dec 20, 2016
96   Add support for diffing two heap dumps.
97   Remove native allocations view.
98   Remove outdated help page.
99   Significant refactoring of ahat internals.
100
101 0.8 Oct 18, 2016
102   Show sample path from GC root with field names in place of dominator path.
103
104 0.7 Aug 16, 2016
105   Launch ahat server before processing the heap dump.
106   Target Java 1.7.
107
108 0.6 Jun 21, 2016
109   Add support for proguard deobfuscation.
110
111 0.5 Apr 19, 2016
112   Update perflib to perflib-25.0.0 to improve processing performance.
113
114 0.4 Feb 23, 2016
115   Annotate char[] objects with their string values.
116   Show registered native allocations for heap dumps that support it.
117
118 0.3 Dec 15, 2015
119   Fix page loading performance by showing a limited number of entries by default.
120   Fix mismatch between overview and "roots" totals.
121   Annotate root objects and show their types.
122   Annotate references with their referents.
123
124 0.2 Oct 20, 2015
125   Take into account 'count' and 'offset' when displaying strings.
126
127 0.1ss Aug 04, 2015
128   Enable stack allocations code (using custom modified perflib).
129   Sort objects in 'objects/' with default sort.
130
131 0.1-stacks Aug 03, 2015
132   Enable stack allocations code (using custom modified perflib).
133
134 0.1 July 30, 2015
135   Initial Release
136
137