How to check the performance of an Android phone Android app

i made a small app with phonegap and mgwt .

Now I want to do the same app with jQuery mobile and compare the mgwt app with the jquery mobile app.

I want to compare the size and performance of both applications.

For example, the rate of change from one view (or side) to the next view (side). Can you, for example, check your speed with a stopwatch?

How can I do this testing?

Do I need an Android phone or is it better to test it in a desktop browser? How to check performance and what tools are needed?

Please, help.

+3


source to share


3 answers


One of the options you can use is Traceview . Here in a blog post, you can see a method for measuring the timing of events in a phone call app.



I hope this helped

0


source


In case of jQuery Mobile and only jQuery Mobile you can use this js script: https://github.com/jquery/jquery-mobile/blob/master/tools/page-change-time.js



At the bottom of my other article: fooobar.com/questions/28078 / ... you will find how to use it.

0


source


You can use DeveloperTools browsers (Firebug, Chrome DevTools, Safari Web Inspector) to measure the performance of various applications.

With Safaris Web Inspector, you can measure the performance of a Phonegap application running on a real device. see Safari Docs . It can connect to the browser on the iOS device as well as the WebViews used by the app, for example. when he uses PhoneGap.

For Android, you can use Weinre to get the web development tools for an app running on a device.

The web developer tools offer many options for viewing your Application eg. check your DOM elements, resources, network traffic, console as well as your application profile. You can call console.profile()

to start profiling and end it with console.profileEnd()

. So it would, for example, be an easy way to measure how long a function takes to run.

0


source







All Articles