- Take a heapdump and open it with ahat on the browser:
runhat2 PID_OR_PROCESS_NAME
- Take thread stacktrace dump
stacktrace PID_OR_PROCESS_NAME
TODO: Remove runhat? Is there anyone still using it?
Bug: 110088132
Test: stacktrace system_server
Test: stacktrace $(pid system_server)
Test: stacktrace com.android.systemui
Test: runhat2 system_server
Change-Id: I8ee4b51ac9097d5342d2d4209407a4b8ac4d5945