Re: [android-developers] Re: Please help me on Android.

2010-08-30 Thread Mark Murphy
On Mon, Aug 30, 2010 at 7:44 AM, Dev Android  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 android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: Please help me on Android.

2010-08-30 Thread Dev Android
On Mon, Aug 30, 2010 at 4:53 PM, Dev Android wrote:

>
> Hi,
>
> 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. Currently,
> i'm following traditional approach by calculating system's current time.
>
>
> --
> Dev
>
>

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