How do I execute each line of code in VS2012 profiler?

From MSDN it seems that the VS2012 profiler can use every line of code, but I just couldn't figure out how to do it.

I have Visual Studio Ultimate 2012.

I need to profile each line in a method that is executed on a thread. Now I can only get the time of the method.

Is there a step by step guide on how to profile each line ?

PS note - this question is about the profiler that comes with the studio, not the third party profiles.

+3


source to share


2 answers


Are you using instrumentation profiling or cpu sampling? The Visual Studio Profiler will show the number of samples per row, but it will not collect how long each row will run in instrumentation mode.



+3


source


I haven't used it much yet, but for me the profiler identifies the calling line in the bottom pane when I move the profiling session call hierarchy in the top pane in VS.



0


source







All Articles