function to profile / performance test PHP functions?
<p>I'm not experiencing any performance issues, however I'd like to take a look at what takes how long and how much memory cpu it uses etc.</p>

<p>I'd like to get a firsthand understanding of which things can be bottle necks etc and improve any code i might reuse or build upon... (perfectionist)</p>

<p>I'm looking to <strong>create a little function</strong> that i can call at the begining and end of each function that records:</p>

<ul>
<li>execution time</li>
<li>memory used</li>
<li>cpu demand</li>
</ul>

<p>any ideas?</p>

<p>i haven't used things like memory_get_usage(), or methods of recording time() before so would love to get some tips on their combined implementation</p>
