Tuesday, April 18, 2017

android memory analysis

adb shell dumpsys meminfo <package name | PID > [-d]

* Android Studio
View > Tool Windows > Android Monitor
> Select Monitors tab

* Capture a heap dump
At Memory monitor -> click Dump Java Heap
to convert : in Capture tab -> right click -> Export to standard .hprof

https://developer.android.com/studio/profile/investigate-ram.html#ViewHeap



No comments:

Post a Comment