Analyzers
Support for Analyzers (Intel VTune™ Profiler, Intel Advisor, Intel Inspector)

Timing per line

soring
Beginner
213 Views
Hello,

Is there a way VTune will present for each source code line the time it spent ?

Thanks

Sorin
0 Kudos
3 Replies
TimP
Black Belt
213 Views
The default setup comes as close as possible to allocating the clock ticks by source line, provided that you built the application with debugging enabled. From the hot spots view, clicking on the colored bars for the function of interest should cause Vtune to search for the source file. When the process works, it should identify the clock ticks belonging to a block of code with source lines within that block. As you haven't disclosed which architecture(s) interest you, or what problem you are seeing, I won't attempt to go further.
soring
Beginner
213 Views
I am trying to optimize console application (use it for simulations). I enable debug info, however when I open the source code view, I just get timing information per a whole function - not per line.

Thanks
Sorin
Intel_C_Intel
Employee
213 Views
Are you running Sampling or Call Graph?
In Sampling, you can view samples per source line.
Call Graph collection is in function granularity.
Reply