On Mon, Aug 30, 2010 at 7:44 AM, Dev Android <[email protected]> wrote:
>> I have written an application and i want to measure the performance of
>> each module. Can you please suggest me the good approach to do this.

Use traceview:

http://developer.android.com/guide/developing/tools/traceview.html

>> Currently, i'm following traditional approach by calculating system's
>> current time.

Use SystemClock and the uptimeMillis() method. Quoting the SystemClock
documentation:

"This clock is guaranteed to be monotonic, and is the recommended
basis for the general purpose interval timing of user interface
events, performance measurements, and anything else that does not need
to measure elapsed time during device sleep."

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com | http://github.com/commonsguy
http://commonsware.com/blog | http://twitter.com/commonsguy

Warescription: Three Android Books, Plus Updates, One Low Price!

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to