Windows Phone Performance Analysis Tool

Source: Internet
Author: User
Tags high cpu usage

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:

  • Inconsistent application frame rate

  • High CPU usage

  • High memory usage

  • The garbage collector has insufficient space.

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.

  • The red flag indicates a dashboard that occupies a large amount of CPU.

  • The purple flag indicates a dashboard that does not occupy a large amount of CPU.

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

 

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.