Geeks With Blogs

News
Michael Crump Microsoft MVP, INETA Community Champion and XAML Advocate.

In the past I’ve used things like ANTS performance profiler to identify performance bottlenecks and to optimize my applications performance. It was always a great way to give an application that final boost that makes it run faster/slicker than my competitor. Now that I’m developing for the WP7 series, I wanted a way to profile those applications as well. I noticed that EQATEC was offering WP7 developers a way to profile their WP7 applications for free and I jumped on the chance. The best thing about this profiler is that you can profile on the actual hardware as well as the emulator. The other advantage is the valuable information it provides and of course the price (free).

Please note that with the FREE version you can only profile 1 WP7 DLL. If you have multiple DLL’s you can buy the full version.

To get started, head over to www.eqatec.com/Profiler and click on the Download EQATEC Profiler Link.

image

You will be asked to provide just a few pieces of information (name, email, company name). After that check your inbox and you will find the link to download it.

Click Next through the setup screens and then launch the profiler.

SNAGHTML423631b

SNAGHTML423ee1b

SNAGHTML424980f

SNAGHTML42544b2

The first screen that appears is actually asking for a folder to the browser of your assembly. I navigated to my {Application Name}\Bin\Debug. This folder contains the .dll of my WP7 application. After you have loaded your application, you will want to click Build. This will provide some information about your project as well as attach the profiler to the assembly.

 

 

 

SNAGHTML43abfdb

The next step is “Run App”, this will give you the option to profile in the emulator or the actual hardware.

 

SNAGHTML43b47a0

Notice that we are now on the second tab called “Run”. In this view you can take snapshots of your application at any time. These snapshots will be used for analysis later on. You will be able to view the details of the snapshot as well as compare different snapshots.

SNAGHTML43fad16

I have been lucky enough to receive the actual WP7 hardware to test on. Here is an example of sending it to the actual Windows Phone 7 Hardware. Nothing is different from the previous screens. At this point, the application will appear on your phone and you can still take snapshots.

SNAGHTML44f7600

The next screen is the “View” Screen. This is where the snapshots you took earlier (from the emulator or hardware) are used. This provides a “Summary of method call times”. I really like how simple the detail view is. “Was called by this method…Time spent inside the method itself….Time spent calling this method.

See the screenshot below:

SNAGHTML44212cb

Here is another example of the time spent inside one of my RssClient.LoadItems method. (This app simply consumes a Feedburner feed).

image

The last and final tab is the “Compare” tab. This tab allows you to compare 2 snapshots and show performance gains.

SNAGHTML4481e5f

 

The EQATEC profile for the Windows Phone 7 is a great utility that every developer should be using. It is simple to use and supports both emulator/hardware profiling. Even if you are developing free applications, its still worth 15 minutes to see if you can improve performance in your app.

A few other Windows Phone 7 Articles that I have written:

From start to finish with the final version of Visual Studio Tools for Windows Phone 7
Hands-on : Windows Phone 7 Review
Deploying your Windows Phone 7 Application to the actual hardware.

Free Windows Phone 7 Training (I will be at the one in Atlanta, Georgia.)

2 Day Event – Click here to Register.

alt Subscribe to my feed

Posted on Saturday, October 9, 2010 8:16 AM WP7 | Back to top

Copyright © mbcrump | Powered by: GeeksWithBlogs.net