When you create an application along with killer user interface, you ought to consider various performance parameters of your application as well. There are certain eligibility performances criteria, your application must pass to be accepted in the Marketplace. These criteria may check your application

1. For maximum memory usage

2. Launching time of your application

3. How responsive is your application

There is Market Place Test Kit you can use to test likely of your application accepted by the marketplace.

Measuring performance of your application should be always the essential task of your application creation life cycle.

 

clip_image001

In Windows Phone 7.1 you get a Performance Analysis Tool. This tool helps you to do analysis on

  • CPU usage
  • Memory Usage
  • How you are handling garbage collection
  • What is your application frame rate

You get performance analysis tool by either pressing ALT+F1 or selecting it from Debug menu option.

clip_image002

There are few thumb rules you need to follow to get best result out of performance analysis tool

  1. You should target device rather emulator
  2. Run the project in release mode rather than debug mode

Just after clicking on Start Widows Phone Performance Analysis, you will get an empty performance log created for you in the solution explorer.

clip_image003

When you choose for performance analysis, you will be prompted to choose from two options

  1. Execution
  2. Memory

clip_image004

Choose your option and click on Launch Application. Application will be launched with performance analysis.

Come back to visual studio and click on Stop Profiling. You will get progress messages that analyzed data is being created.

clip_image006

clip_image008

When you click on .sap file you will get performance graph as below,

clip_image010

Frame Rates provides information about number of frame redrawn each second. This information is only available when display UI is getting updated. Windows Phone 7 application should have 30 to 60 second frame rate per second.

In CPU usage there are four colors and each color have their own significant meaning.

clip_image011

Memory usage says about amount of phone memory used in application. It is measured in mega bytes

Storyboard gives information about animation in the application. There are two types of animation and represented by two different colors.

clip_image012

Image loads says about image load as assets into the phone memory.

GC events say about when garbage collector collects free memory.

By having all above information discussed above you can very much do performance analysis of your application. Have a good time writing good performance centric application Smile

If you find my blogs useful you may like to follow me on twitter http://twitter.com/debug_mode or may like Facebook page of my blog http://www.facebook.com/DebugMode.Net If you want to see post on a particular topic please do write on FB page or tweet me about that, I would love to help you.

Advertisements

2 thoughts on “Windows Phone 7.5 or Mango Phone Application Performance analysis

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s