Android Studio 3.2: Can't find the Analyzer Tasks pane when opening an HPROF dump file
Asked Answered
F

2

8

I'm trying to analyze an app for memory leaks using the Android Profiler. Most online tutorials (and answers on this site) say to create a heap dump, save it with the .hprof extension, and then open this in Android Studio. I'm able to do that but cannot find the "Analyzer Tasks" pane that these tutorials reference, like in the screenshot below:

Example screenshot

I've tried looking everywhere. This is all I see on my end:

What I see

Where can I find it?

Formulism answered 9/10, 2018 at 17:44 Comment(0)
F
6

It seems that the Analyzer Tasks pane has been removed in the last versions of Android Studio.

You can either download an old version or use another software to analyze heap dumps. For that there is Mat or YourKit. There is probably other software on the market for that.

To detect memory leaks, I can only advice you to use Leak Canary. It is a tool that will automatically look for memory leaks in the app at runtime by dumping the heap and analyzing it.

Feel free to ask if you have questions on those tools.

Have a nice day.

Fleur answered 15/10, 2018 at 8:51 Comment(3)
Leak Canary is a tool to find LeakMemory, But there is a funny thing about this library, It has a leak in ReportFragment :(Kyrstin
@Kyrstin there is indeed a leak in ReportFragment, but even if this is not an ideal situation, the tool still works.Fleur
That's right, But Android Profiler is reliable and easy to use, too.Kyrstin
S
6

FYI, This is tracked on issue tracker: https://issuetracker.google.com/issues/117363840

From google engineer: Thanks for the feedback. It is the limitation of our tool at this moment, but it's on our backlog to address in the future.

Stubborn answered 15/10, 2018 at 13:57 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.