Using PerfTips to identify bottlenecks in code

PerfTips are definitely one of my favorite features of Visual Studio 2015. Explaining what they do doesn't do them justice. You have to see them in action.

Getting ready

Do not confuse PerfTips with CodeLens. PerfTips is a separate option from CodeLens in Visual Studio.

How to do it…

  1. PerfTips are enabled by default. But just in case you are not seeing any PerfTips, go to Tools | Options, and expand the Debugging node. Under General, to the bottom of the settings page, you will see an option called Show elapsed time PerfTip while debugging. Ensure that this option is checked:
    How to do it…
  2. We will create a few simple methods ...

Get C# Programming Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.