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.
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.
There are few thumb rules you need to follow to get best result out of performance analysis tool
- You should target device rather emulator
- 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.
When you choose for performance analysis, you will be prompted to choose from two options
- Execution
- Memory
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.
When you click on .sap file you will get performance graph as below,
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.
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.
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
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.
Follow @debug_mode
Leave a Reply