Remote Debugging

Every so often, on days like today, I need to debug on a machine where I don’t have a debugger installed. There are a few options in this case, but one of the most convenient of these is to use Visual Studio’s remote debugging facility. The procedure is pretty convenient with Visual Studio 2010, since…


VS2010: Just My Code

The ‘Just My Code’ feature in the profiler has a few differences to the ‘Just My Code’ feature in the debugger so this post should provide a useful introduction. Example Program Here’s a very simple program I’ll use in this post. using System; namespace ConsoleApplication1 { class Program { static void Main(string[] args) { Foo();…


Tip: Fixing VSPerfASPNetCmd metabase errors

VSPerfASPNetCmd is a new Visual Studio 2010 tool that helps you profile ASP.Net websites from the command-line. Recently I noticed an error message which didn’t cover one common situation so I thought I’d write about it. Here’s an example: > VSPerfASPNetCmd.exe http://localhost Microsoft (R) VSPerf ASP.NET Command, Version 10.0.0.0 Copyright (C) Microsoft Corporation. All rights…


VS2010: Profiler Guidance (rules) Part 1

The new guidance feature in the VS2010 profiler will look familiar to people who have used the static code analysis tools in previous versions. However, instead of statically analyzing your code, the profiler runs it and analyzes the results to provide guidance to fix some common performance issues. Probably the best way to introduce this…


VS2010: Profiling In Progress (PIP)

With Visual Studio 2010 we want to make it clearer when you are profiling your application within the Visual Studio IDE. To accomplish this we added a new control which we call ‘Profiling In Progress’ or PIP, which we show when you launch the profiler or attach the profiler to a running application. Our goal…


VS2010: New Profiler Summary Page

With Visual Studio 2010 we want to make it easier for customers to find and fix performance issues with their code. One of the first things we looked at was the view that shows up after profiling an application – the Summary Page. I’ll describe a few features of the new summary page using the…


PDC 2008 – See the Sessions

This year if you didn’t get a chance to go to the Professional Developer’s Conference (PDC), there is still a wealth of information available to you. The most valuable resource I think are the videos of all the PDC sessions. Here are a few of the sessions that I’ve viewed and found most interesting: Improving…


Tech-Ed 2008 Demos

Last year my boss took a trip to sunny Orlando to present at Tech-Ed and to offer help and suggestions in the Technical Learning Center (TLC). This year I’m lucky enough to be attending with a couple of other folks (Habib and Tim) and since I’m not an official Speaker I’ll be spending most of…


Performance: Inserting Marks Using Code

Ian previously covered using the VS 2008 Data Collection Control to choose when to collect data. The Data Collection Control can also be used to insert marks into the performance report, but sometimes it is convenient to modify the source code to do this automatically. Consider a typical application (PeopleTrax) where I am interested in…


Performance: Find Application Bottlenecks With Visual Studio Profiler

If you’re a subscriber to msdn magazine, take a look at the article in the March 2008, Vol 23, No 4 issue on Page 81 which describes how to use the Visual Studio 2008 profiler to improve the performance of an application. A couple of members of the profiler team examine a Mandelbrot fractal drawing program…