To profile CPU usage in your application (for example, the percentage of time spent on individual methods), view traceview . This is the executable in your tools directory that comes with the Android SDK.
To use memory, you can use the Eclipse Memory Analyzer (MAT) (there is a separate option if you prefer a different IDE).
To use the battery, there is a project called PowerTutor that helps evaluate the power consumed by the processor, network interface, display, and GPS.
source share