Analyzers
Talk to fellow users of Intel Analyzer tools (Intel VTune™ Profiler, Intel Advisor)

Timing per line

soring
Beginner
487 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
Honored Contributor III
487 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.
0 Kudos
soring
Beginner
487 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
0 Kudos
Intel_C_Intel
Employee
487 Views
Are you running Sampling or Call Graph?
In Sampling, you can view samples per source line.
Call Graph collection is in function granularity.
0 Kudos
Reply