title: Profiling c++ on mac os x
body: <p>I'm attempting to profile some c++ code on my mac (os x Lion) and I haven't been able to find anything useful. I'm looking for a profiler that will tell me what functions are taking up my cpu time (similar to the matlab profiler).</p>
  <p>Here is what I have tried</p>
  <ul>
  <li>gprof. This is what I use on my linux machine, but it just gives me empty output on my mac (apparently a known problem)</li>
  <li>Instruments. I can't for the life of me figure out how to profile anything within my compiled binary. Nor can I find any sort of useful tutorial.</li>
  <li>(other searching revealed Shark, which is no longer available and Valgrind which is for memory).</li>
  </ul>