Site icon TheWindowsUpdate.com

Cook Book on Windows Mobile App Performance using Windows Performance Analyzer(WPA)

This post has been republished via RSS; it originally appeared at: TestingSpot Blog articles.

First published on MSDN on Jul 02, 2018

Authored by Ganesh Alalasundaram


Windows Performance Analyzer is a tool to evaluate the performance of windows applications. It can be used for analyzing the performance of windows applications.


Here, we will discuss on how to use the tool step by step to evaluate the performance of the windows mobile apps. Performance testing of mobile apps can be done through the api layer but that does not complete the entire process. We need to analyze the impact of memory leaks/cpu utilization etc in our application. This tool will help us to evaluate those parameters.


The following file formats are supported by the tool: etl/wpa/xml/wpapk/zip files.



To start with, we will be going through the below sequence


1. How to Deploy Windows Phone app -> 2. How install WPA -> 3. How to extract Logs -> 4. How to Analyze using WPA

1. How to deploy a Windows phone application?

There are three ways of doing the installation : 1a. Windows Phone Application Deployment Tool / 1b. Visual Studio / 1c. Command Prompt.


1a. Using Windows Phone Application Deployment tool.


Install the latest version of windows mobile application in emulator or device using windows phone application deployment. Windows phone application deployment tool comes as a part of windows phone SDK.



In the above tool, set the target as either device or the emulators as listed. Browse the *.appx/*.xap/*.appxbundle and click deploy. Application will be deployed.


1b. Deploy Using Visual studio


Open a windows phone project. Select the target device in the toolbar and run the project(F5).



1c. Deploy using the command prompt


To deploy a windows phone 8/8.1 app in device. Use the steps below




To deploy a windows phone 10 app in device. Use the steps below




More information about WinAppDeployCmd can be found at https://msdn.microsoft.com/en-us/library/mt203806.aspx



2. How to Install WPA


Download the windows performance analyzer which comes as a package with Windows ADK.


https://msdn.microsoft.com/en-us/windows/hardware/dn913721(v=vs.8.5).aspx


Windows Performance Analyzer will be available under the path : C:\Program Files (x86)\Windows Kits\10\Windows Performance Toolkit\wpa.exe




  1. How Extract Log Files



C:\Program Files (x86)\Microsoft SDKs\Windows Phone\v8.1\Tools\PowerTools\PwTools.exe




Make sure the connectivity is established between the device/emulator with the power tools. App should be pre-installed in the emulator or device before the log is captured.









  1. How to Analyze using WPA



The below picture has mainly two panes. One on the left known as Graph Explorer and another on the right side Analysis.







Graph Explorer:


Graph Explorer displays a list of thumbnails of all the graphs of the input file. Ex: System Activity/Computation/Storage/Memory/Power/Etc in the left pane.


Each thumbnail as stated above has sub divisions which are collapsed initially. To view the detailed graph, select the thumbnail and drag it to analysis pane.



Analysis Tab





In the above picture, a portion of computation -> Utilization by CPU is taken into analysis. Analysis pane has the option of zooming the selection and other options as listed in the below image. And we have options of configuring the data table columns/ filtering the rows etc.


Analyze using default catalog















Major Parameters used to measure the performance of the mobile apps.




Exit mobile version