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();…

1

How to Profile IIS Express with Visual Studio 2010 SP1

  While IIS Express support shipped in Visual Studio 2010 SP1, unfortunately profiling code running in IIS Express does not just work out of the box.  The issue is that the profiler does not “know” how to setup and launch the IIS Express process to enable the various profiling methods.  If this is a blocking…


“Performance reports must be created on a local drive”

For better performance, VS Profiler requires the report to be on a local drive. If you change the report file location through Performance Session properties page (right click on performance session in Performance Explorer –> Properties –> General): then you end up with an error like that: The rationale behind usage of local drives is…

0

How to profile ASP.NET and Silverlight at the same time

In Visual Studio 2010 SP1 we enabled the ability to profile Silverlight applications from the Visual Studio UI.  Unfortunately there is a limitation where we cannot automatically attach to multiple processes on launch from inside Visual Studio, so you are still unable to profile ASP.NET and Silverlight at the same time without manually attaching to…