In the VS2010 toolbar, you can "debug"-"Start Windows Phone Performance Analysis" to enable system Performance Analysis.
The Performance Analysis tool allows you to measure and analyze the Performance of your applications. This tool allows you to evaluate your application execution or memory usage in a single analysis session. Each time you run the Performance Analysis tool, a file (. sap) is created, which contains the Performance information in the session. After the file content is selected, the relevant content is displayed in Visual Studio, and the results are displayed in a series of performance graphics and tables (including other information. Because Windows Phone applications must meet certain Performance requirements, using the Performance Analysis tool is an important step to prepare applications for submission to the marketplace.
The following table contains issues that can be easily identified using the Performance Analysis tool:
The Performance Analysis tool displays six Performance regions in graphical format. Each region is color-coded so that it can be easily recognized in the image.
For example:
Frame Rate
Displays the number of screen redraws, frames per second, and applications completed at this time point in the timeline. This information can only be used during the time series during which the application updates the display in some way. The average value of Windows Phone applications should be between 30 and 60 frames per second.
CPU usage percentage
Displays the CPU usage of the mobile phone when the application is running. CPU usage is represented by the thread type in the figure. The following table lists the thread types.
Thread |
Color in the image |
Remarks |
User Interface (UI) thread |
Green |
Screen update and touch input. You should try to limit the CPU usage percentage of the UI thread to less than 50%. |
Application Thread |
Purple |
Indicates a non-UI application activity. This activity can be a diagram thread or background thread. |
System thread |
Gray |
Indicates activities that are not targeted at the application. The system thread percentage value is too large, indicating that the system is busy processing other background tasks and will affect application performance. |
Idle thread |
White |
Percentage of available CPUs. The higher the percentage of Idle threads, the faster the application response speed. |
Memory usage MB
Displays the amount of memory that the app is using (in MB ).
Demo Board
The S Mark is displayed on the time line to indicate the occurrence of a dashboard event. A graphic board event usually shows the starting point of an animation. There are two types of tags.
Image loading
The I mark is displayed on the time line, indicating the time when the image asset is loaded into the phone memory.
GC event
The G mark is displayed on the time line to indicate the time when the garbage collection occurred. In this way, you can provide detailed information about the time when the runtime recovers the recently released memory space.
For more information about Performance Analysis tools and browse graphics details, see http://msdn.microsoft.com/zh-cn/library/hh202934 (v = vs.92). aspx