Tuesday 15 September 2015

Microsoft VS 2015 - PerfTips


Microsoft recently released RTM version of VS 2015. As part of this release, there is an important feature which helps doing performance analysis of application called PerTips

What are PerfTips?


As you step over lines of code or run from breakpoint to breakpoint, the debugger will display a PerfTip (tooltips with performance information) in the editor at the end of the code line indicating how long the program was running during the previous step or since the last breakpoint. All you need to do is look at it!



The ≤ sign indicates that there is some debug overhead included in the PerfTip and that this number is showing you an upper bound of how long the code took to run. The upper bound allows you to identify which sections of code are running fast enough, and which sections of code may need further investigation. Notice in the screenshot above, that the PerfTip is shown after the line of code that will be executed next. If you hover over the PerfTip you will notice that it is a link:



When you click on the link it brings the Diagnostic Tools window into focus so that you can see the history of PerfTip values on the Events break track.