Performance and optimization: Bs_StopWatch.class.php blueshoes (contact me)
You can take times during a code run and at the end get a time table as HTML or text table. The output will contain total and as delta between each take in microseconds.
Free Code; This Class is part of the BlueShoes PHP Application Framework, see blueshoes.org.