Possible Duplicate:
How to get Memory usage and CPU usage in android?
I'm writing an android application that needs to know how much cpu/battery intensive are some statements.
For example if I call a function, I would like to know how much battery that function used, or at least something like that, for example how many clock cycles have been used.
Do you know everything I can use?
Thanks in advance
Leonardo