title: Using gprof with sockets
body: <p>I have a program I want to profile with gprof.  The problem (seemingly) is that it uses sockets.  So I get things like this:</p>
  
  <pre><code>::select(): Interrupted system call
  </code></pre>
  
  <p>I hit this problem a while back, gave up, and moved on.  But I would really like to be able to profile my code, using gprof if possible.  What can I do?  Is there a gprof option I'm missing?  A socket option?  Is gprof totally useless in the presence of these types of system calls?  If so, is there a viable alternative?</p>
  
  <p><strong>EDIT:</strong> Platform:</p>
  
  <ul>
  <li>Linux 2.6 (x64)</li>
  <li>GCC 4.4.1</li>
  <li>gprof 2.19</li>
  </ul>