Android Studio 4.0.2 is exporting empty hprof files from memory that is not empty.
The profiler shows memory correctly, but I would like to use MAT to analyze the heap because Android Studio does not give the information in an easy to parse way. 
Is there a way to fix this?
I know this is an older post, but have you tried using ADB to collect the dumpheap of your application?
adb shell ps | grep
app-nameadb shell am dumpheap
pid/data/local/tmp/android.hprofadb pull /data/local/tmp/android.hprof
You will then need to use the HPROF-Converter to view in Android Studio https://stuff.mit.edu/afs/sipb/project/android/docs/tools/help/hprof-conv.html
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With