问题
I need to profile an application developed for android platform. I've already used jprofiler in web-application development. I use Android Studio (and Eclipse with ADT plugin) and actually i use DDMS to check cpu and heap memory comsuption.
Is it possible to connect Jprofiler to a running application on Android device?
回答1:
JProfiler is a tool for profiling applications running on the Java virtual machine. Even though Android uses the Java language, it runs on a different virtual machine, so you can't use any of the Java profilers such as JProfiler or YourKit to profile the applications.
Instead, you need to use the Google-provided tools such as DDMS.
来源:https://stackoverflow.com/questions/31743442/attach-jprofiler-to-running-app-on-android-device