title: `gprof` time spent in particular lines of code
body: <p>I've been using the <code>gprof</code> profiler in conjunction with <code>g++</code>.</p>
  
  <p>I have a function in my code which encapsulates several sections of behaviour which are related enough to the primary function that it would not make sense to split them off into their own functions.</p>
  
  <p>I'd like to know how much time is spent in each of these areas of code.</p>
  
  <p>So, if you imagine the code looks like</p>
  
  <pre><code>function(){
      A
      A
      A
      B
      B
      B
      C
      C
      C
  }
  </code></pre>
  
  <p>where A, B, and C represent particular sections of code I'm interested in, is there a way to get <code>gprof</code> to tell me how much time is spent working on those particular sections?</p>