I’m guessing everyone knows that Visual Studio (Premium and Ultimate Editions) has a code profiler built-in. But did you know you can use it to compare and show differences and improvements between profiling sessions?
- How to: Compare Profiler Data Files : You can compare the results of two different profiler data files (.vsp or .vsps) by creating a comparison (“Diff”) report or view. The comparison shows the differences, performance regressions, and improvements that occurred from one profiling session to the other. The ‘Just My Code’ feature is also quite useful for profiling code that you either wrote or you have control over during sampling mode.
There are also other commercial code profiling tools available from RedGate and JetBrains, and Eqatec (which has a free version).