3

It seems that my app take too much CPU for simple actions, and I want to analyze that.

How can I trace the CPU usage in android system via eclipse?
Is there any way to calculate it per method?

Kmanc
  • 349
  • 1
  • 5
  • 20
nrofis
  • 8,975
  • 14
  • 58
  • 113
  • Did you see related answers? http://stackoverflow.com/questions/3118234/how-to-get-memory-usage-and-cpu-usage-in-android, http://stackoverflow.com/questions/9977822/android-memory-cpu-usage ? – Stan Oct 18 '13 at 08:05
  • The first link explain how to read the cpu usage, that I dont want to. I want to analyze my app. The second link says to view it by `traceview` that i didnt found in eclipse – nrofis Oct 18 '13 at 08:10
  • Do you mean you want your app `profiler`? – Stan Oct 18 '13 at 08:16
  • Yes, somthing that will analyze my CPU for each method. – nrofis Oct 18 '13 at 08:20
  • Did you see http://help.eclipse.org/helios/index.jsp?topic=%2Forg.eclipse.tptp.platform.doc.user%2Fconcepts%2Fceproftl.xhtml? – Stan Oct 18 '13 at 08:22
  • But how can I use it with android device? – nrofis Oct 18 '13 at 08:25
  • It seems requiring TPTP plugin installation. But `traceview` approach is more straighforward. `traceview` is located in `android-sdk/tools` directory (at least, in my installation). – Stan Oct 18 '13 at 08:40

0 Answers0