1

I set up a unit test to see how a method is performing,
then I ran the method with dotTrace profiler trying different modes.
It gives me a very detailed report but I can't find anywhere the execution time of each line of code within the method.

Is it possible to see how long it took each line of a method took to execute in a .Net application with dotTrace or the visual studio profiler?

PerfTip from visual studio gives me this information, but requires to debug line by line manually and there is no report functionality.

s.demuro
  • 399
  • 2
  • 15
  • It is not good idea to use Visual Studio Profiler to get execution time line by line. Because the Visual Studio Profiler collect performance data without debugging. You can use the Visual Studio Profiler to get the usage time of each method in your program. – Lei Zhang-MSFT Sep 30 '22 at 09:49
  • What people usually want to do is reduce execution time, which means finding the lines that use a lot of time, not a little. That's what [*this*](https://stackoverflow.com/a/378024/23771) does. – Mike Dunlavey Oct 03 '22 at 13:57

0 Answers0