Automatic NGEN PDB generation

On Windows 8 or higher, when sampling managed applications, you may have noticed that samples in native images created through NGEN (these images are generated ahead of time from .NET assemblies in order to avoid the cost of JIT compilation) appear as “[<name>.ni.dll]” instead of being resolved to useful function names. Back in 2012, we…


Visual Studio 2012 Profiler on Windows 8.1

If you’ve used sampling to profile your application on Windows 8.1 with any version of Visual Studio 2012 other than Update 4, you may have run into an issue where symbols are not resolved for some code even if you have the correct PDB files available on your symbol path. You can tell if this…


It’s quiet in here

  Posting on behalf of Aditya Mandaleeka You may have noticed that the last entry on this blog was posted in 2012. We just wanted to let you know that we haven’t stopped working hard to bring you performance and diagnostics capabilities in Visual Studio or blogging about them. We’ve just been blogging in a new location; you…


The Visual Studio Profiler on Windows 8

Windows 8 brought a lot of great changes to Windows including a stronger security model and new capabilities for performance tools. I am excited about how the new capabilities allow us to deliver new performance tooling not previously possible, e.g. the JavaScript Memory Analyzer for Windows Store apps. However because of the stronger security model…


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…


VS2010 SP1: Silverlight 4 profiling from Visual Studio UI

  If you install recently published VS2010 SP1 Beta, you can discover that VS Profiler team enriched Silverlight profiling user experience. Previously I published few posts about VS2010 usage for those purposes, either through VS Profiler command line tools or VS2010 UI. Both approaches led you to the final results or figuring out the bottlenecks…

3

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…

0