title: How do you profile your code?
body: <p>I hope not everyone is using Rational Purify.</p>
  
  <p>So what do you do when you want to measure:</p>
  
  <ul>
  <li>time taken by a function</li>
  <li>peak memory usage </li>
  <li>code coverage</li>
  </ul>
  
  <p>At the moment, we do it manually [using log statements with timestamps and another script to parse the log and output to excel. phew...)</p>
  
  <p>What would you recommend? Pointing to tools or any techniques would be appreciated!</p>
  
  <p>EDIT: Sorry, I didn't specify the environment first, <em>Its plain C on a proprietary mobile</em> platform</p>