Visual Studio Toolbox: Performance Profiling

Play Visual Studio Toolbox: Performance Profiling

The Discussion

  • User profile image

    Hi Robert,

    I like your show  Smiley

    Thanks for this very nice episode, it was very interesting and helpful for me, if you can show us more examples about profiling and analyzing code for different type of projects such as ASP.NET and WCF applications and how to dive deep in to code, also you can show us third-party extensions that help us profiling and analyzing code.


  • User profile image

    very interesting,thanks

  • User profile image

    1. Free profiling for the masses (almost).
    2. This has most of the features of some 3rd party products like JetBrains' dotTrace and at the moment has much deeper reach into profiling external (not my code) functions through symbols. For example, I was using a 3rd party library the other day and when I sampled my application I found that System.String.ToLower was being called a LOT. But I wasn't calling it! I easily found that the 3rd party library was the culprit by clicking "Functions calling this function". Being able to see the specific line in your code which is calling some expensive external code is AWESOME!

    1. This is a nice addition to VS, but it should be available to all editions of VS2010.
    2. When in Sample mode, it doesn't give you any weight (time taken) behind those measurements. This video is the perfect example, String.Concat was being called a lot but it's not a huge deal since it only takes less than 5% of the time taken. You can go to Instrumentation to get the time taken but then there's no line-by-line highlighting in the function to see which lines are taking all that time in the function. You have to guess or try to manually cross reference it with the Sampling report. The JetBrains tool combines into a single profile report so you can see which functions are taking the most time and how many times they were called, all in one view/profile. The VS team should take notes.
    3. It is definitely a V1 tool and has some annoying visual problems. The scrolling on Summary view is pretty bad. When viewing the Call Tree, if you expand a function the "Function Name" column doesn't get any wider, so if you have to drill down deep you find yourself widening and shortening the column a lot. Minor visual issues but still annoying.

    When you go to the properties of the Target, you can "Enable Tier Interaction Profiling" which sounds very interesting.
    JavaScript profiling also sounds interesting.

  • User profile image


    Since I program in C# and native C++, is this profiler available only for .NET language? Thanks!

  • User profile image

    Very useful and straight forward to the point! Thank you. I enjoy watching and applying the steps to optimise the project I am working on atm.

    It would be nice if the tool can be expanded to profile LINQ query that EF uses. Or may be if any third party tool if it's not built-in VS.

    I read jabit comment as well, good points.

Conversation locked

This conversation has been locked by the site admins. No new comments can be made.