Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to open/find a "hprof" dump file created with Android Studio 2.1.3?

Tags:

I am new to Android Development. I want to analize the way my application uses memory. I am developing my application using Android Studio 2.1.3.

I am using Android Monitor to observe the memory ussage and I am trying to create a "hprof" file. I am clicking the "Dump Java Heap" button in memory monitor but nothing happens.

At the following link the official documentation states that the HPROF Viewer automatically appears once the hprof file is created. official documentation screenshot

Also the official documentation states that the dump files are stored in a Heap Snapshot folder so they can be viewd later.

I cannot find the folder where the dump files are stored.

I even searched all my hard disc for files with the "hprof" extension and find nothing.

Can you help me find the dump files and open it?

like image 408
Liviu Avatar asked Sep 02 '16 16:09

Liviu


1 Answers

Go to Android Monitor, then Monitors, click icon that specifies Dump Java Heap under the Memory section. Your ".hprof" file will be displayed in your editor

like image 181
Isaac Sekamatte Avatar answered Sep 22 '22 16:09

Isaac Sekamatte