<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>

nProf
- Free, does that for .NET.
Gets the job done, at least enough to see the 80/20. (20% of the code, taking 80% of the time)