title: How to profile optimized c code lines
body: <p>Why can't I get line by line profiling data for optimized code ? Why am I getting jumps in the lines ? I know that there are compiler optimizations but every assembly line has a c source matched to it. I know I can get profiling of functions, but I want to check how much time each line took.
  I need to to know when instruction fetch is being done and how many cycle it takes, and where data fetch is being done and to (obviously - ) speed up the code.</p>