Timing per line

Timing per line

Hello,

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

Thanks

Sorin

4 posts / 0 new
Last post
For more complete information about compiler optimizations, see our Optimization Notice.

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.

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

Are you running Sampling or Call Graph?
In Sampling, you can view samples per source line.
Call Graph collection is in function granularity.

Login to leave a comment.