From the MSDN it seems the VS2012 profiler can time each line of code but I just couldnt figure how.
I have Visual Studio Ultimate 2012.
I need to profile each line in a method which is running in a thread. Now I only can get a method timing.
Is there a walkthrough on how to profile each line?
P.S. please note – this question is about the profiler which ships with the studio not 3d party profilers.
Are you using instrumentation profiling or CPU sampling? The Visual Studio profiler will show CPU sample counts per line, but it does not collect how long each line takes to run in instrumentation mode