[Phpwm] timing a function
dogmatic69 at gmail.com
Fri Oct 21 12:54:18 UTC 2011
by the sounds of the question profiling is not what is needed, but rather a
way to bill for execution time (with something like microtime()). Could be
if it is profiling, xhprof is awesome and usable on production servers.
On Fri, Oct 21, 2011 at 1:13 PM, David Goodwin <david at codepoets.co.uk>wrote:
> On 21 Oct 2011, at 13:01, alan dunn wrote:
> > I want to measure the execution time for a function - it is to determine
> a price given quantity discounts, promotion prices etc.
> > Can anyone give me tips on how to do that?
> > More generally I have the options of running a php function - or creating
> a database function in plpgsql to do the same thing. Someone might have a
> view about their relative speeds?
> Suggest you look at xdebug or xhprof and profiling.
> Phpwm mailing list
> Website : http://www.phpwm.org
> Twitter : http://www.twitter.com/phpwm
> Facebook: http://www.facebook.com/group.php?gid=2361609907
> Post to list: Phpwm at mailman.lug.org.uk
> Archive etc : https://mailman.lug.org.uk/mailman/listinfo/phpwm
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Phpwm