See The Profiler At PDC2008

Steve Carroll, development lead for the Visual Studio Profiler, will be at PDC2008 next week giving a presentation on the profiler: What: TL24: Improving .NET Application Performance and Scalability When: Wednesday, October 29th, 1:15pm – 2:30pm Where: Room 153 Abstract: “Performance must be considered in each step of the development lifecycle. See how to integrate…


Walkthroughs: Using VSTS Test and Profilers to Find Performance Issues

Tess Ferrandez recently wrote a couple of articles that extend her popular series of debugging labs to focus on measuring and improving performance. In ‘Using VSTS Test and Profilers to troubleshoot performance issues (low cpu hang)‘, Tess introduces a performance problem into an ASP.NET application and uses the Visual Studio Profiler with a Load Test to track down the problem….


Tip: VS2008 – Finding and Setting Properties (Right-Click)

The Visual Studio Profiler has many properties and options and this tip shows you where to find most of them. Future posts may cover some of the specific properties in more detail.   Performance Session:   Select an existing Performance Session in the Performance Explorer to see properties in the Properties Window. If the Properties…


Visual Studio Profiler: Found A Bug? Have A Suggestion?

The profiler is not flawless.  We work hard every day to improve it, however, and we’re always listening to and considering your feedback.  The profiler exists to help you, so if you feel it has shortcomings or if it fails to fully address your scenario, please let us know.  The more we hear from you,…


VS2008 SP1 Website Profiling Bug And Workaround

Visual Studio 2008 Service Pack 1, while fixing many profiling bugs, has also unfortunately introduced an issue with website profiling.  If you have a website project created with a pre-SP1 version of Visual Studio and then try to profile it using instrumentation with VS2008 SP1, you might run into a rather vague error: “Value does…


Visual Studio 2008 Service Pack 1 Released To The World!

After months of development and some grueling bug fixes, we released the VS2008 SP1 patch to the web this morning.  You can check out more details in the readme.  For the profiler, we fixed a number of bugs including: Adding support for instrumenting 64-bit managed C++ applications Improved instrumentation experience with precompiled websites Shipping the…


Walkthrough: Profiling With Automated Tests

When doing performance investigations, we recommend having some well-defined scenario in mind in order to increase the reproducibility of your issue and increase the consistency of profiling data collected.  This approach is similar in spirit to creating the smallest self-contained repro possible when debugging.  When diagnosing any complex system, limiting the variables involved is a…


Sample Profiling And Stdin

Some command-line applications can read from stdin for use as program input.  The canonical example of this is sort.exe which sorts the list of strings given to it and prints it back out to the console: C:\Temp> type letters.txt m z a C:\Temp> sort < letters.txt a m z Sample profiling an application that reads…


Tip: VS2008 – Understanding Performance Targets

If you have a solution that contains multiple projects it is important to know what the ‘Targets’ group in the Performance Explorer is used for. The PeopleTrax solution shown on the right has 4 projects, with 3 of them compiling to managed DLLs and 1 compiling to an executable. After running the Performance Wizard to…


Excluding Small Functions From Instrumentation

In Visual Studio 2008, we added a feature to exclude small functions from instrumentation.  A small function is a function that has very few instructions and makes no function calls (i.e. it’s a leaf).  The idea behind this feature is that small functions are unlikely to be significant in the overall profile of your application,…