-
Notifications
You must be signed in to change notification settings - Fork 4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add resource id names to the heap dump #1297
Comments
Not sure if something changed but this trick doesn't seem to work, I have an app where 0x07070000 doesn't map to any id (cc @romainguy ) |
It looks like numbers in apps aren't sequential anymore. |
Are you saying it doesn't work on Android 10 or in general? There is a pretty new blogpost about this technique https://jebware.com/blog/?p=600 |
oh cool! It's very possible that I messed up, I'll try again with the code from @Jebstuart |
This enables us to know the view id names when displaying a leak trace Fixes #1297
This enables us to know the view id names when displaying a leak trace Implementation based on a [blog article](https://jebware.com/blog/?p=600) from @Jebstuart which itself is based on a [Stack Overflow answer](https://stackoverflow.com/a/6646113/703646). Fixes #1297
This enables us to know the view id names when displaying a leak trace Implementation based on a [blog article](https://jebware.com/blog/?p=600) from @Jebstuart which itself is based on a [Stack Overflow answer](https://stackoverflow.com/a/6646113/703646). Fixes #1297
Currently we resolve resource id names at analysis time by calling
resources.getResourceEntryName()
. This works only if the heap dump is analyzed in the same build as where the heap was dumped.Instead, we can capture the list of ids and names before the heap dump, store that in a static field in memory, then read it from the analyzer (and clear it in memory)
We might want to capture this data as a pre dump step.
cc @romainguy @tyvsmith
The text was updated successfully, but these errors were encountered: