Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Visual Studio: Show elapsed time for line of codes

In earlier versions of Visual Studio, the elapsed time for every line of code (C#) during a debug run could displayed within the code view near to the line number.

I couldn't find any similar feature in the current 2022 version of Visual Studio. Is this still a feature and what do I have to do to enable it?

like image 385
Konrad Avatar asked Sep 02 '25 09:09

Konrad


1 Answers

It's still available in VS 2022. See screenshot below.

enter image description here

To enable it, go to Debug menu, choose Options.

Check Show elapsed PerfTip while debugging option

like image 127
WisdomSeeker Avatar answered Sep 04 '25 22:09

WisdomSeeker