2
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

Performance Analysis Tool for UWP Applications

Posted at

Introduction

In Visual Studio, we have Performance Profiler tool that enable us to analyze application interaction-related performance issue in our XAML Universal Window Platform Application. Performance is the critical aspect of any application. It can influence the user's perception of the entire application. The application profiling tool helps us to improve the performance by providing a semantically-rich, scenario centric view of our application's resource consumption. We can analyze the time spent by the application preparing UI frames, servicing network and disk requests, and much more scenarios like application start up and page load.

How to use the tool?

To open the Performance Profiler tool in Visual Studio, click on Analyze from the main menu and select Performance Profiler or simply use the shortcut (ALT + F2), and we can stop the analysis process by clicking on the link in Visual Studio and it will automatically generate the diagnosis report for us.
4024.Start_thumb_56B71C4C.gif
Now we can check the performance report for optimization.
8255.FinishProfiling_thumb_790EB1C5.png

How to inspect the report?

The report lists all events in our application, which correspond to the CPU consumption during our application's execution.

Graphs

8267.Grpahs_thumb_06CFBBEF.png
In the top most of the report, it shows the UI thread utilization of the application. It spots out the detail of UI thread utilization and the low frame rate which might correspond to poor application responsiveness.

Details View

Right in the bottom most of the report is the details view. It shows us the details of CPU utilization of the application.
XAML: Layout, Parsing, Render
System: Disk, Network
Other: Garbage Collection
0247.UI-Enhancements_thumb_3B70182A.png
These UI enhancement can be turned off by using View Settings in the command bar of the details view.
6330.ViewSettings_thumb_16E6128A.png
Layout: In large applications, often thousands of elements are shown on the screen at the same time. This might result a low UI frame rate that correspond to the poor responsiveness. We can use this visualization to determine which of our logical trees need pruning, to optimize the layout.
6266.Layout_thumb_6D7BB70D.png

Parsing:

It indicates the total amount of time spent by the UI thread in parsing XAML files and creating objects. ![4111.Parsing_thumb_060B545E.png](https://qiita-image-store.s3.amazonaws.com/0/211892/c377d1fa-99bf-bd0d-17ca-3509c03839c9.png) Application startup: It measures the interval between the application launch by the operating system to the time taken for the application to the submit the first frame to the Desktop Window Manager. ![1070.AppStartup_thumb_73C28D9B.png](https://qiita-image-store.s3.amazonaws.com/0/211892/0d3380b8-299b-605d-ddb5-004c349c90f2.png) So these are all the main stuff about UWP performance review in Visual Studio. Reference: https://blogs.msdn.microsoft.com/wpf/2015/01/16/new-ui-performance-analysis-tool-for-wpf-applications/
2
2
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?