[Phpwm] timing a function

Carl Sutton 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
wrong though.

if it is profiling, xhprof is awesome and usable on production servers.

Carl Sutton
dogmatic69.com


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.
>
> David.
>
>
> _______________________________________________
> 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...
URL: <http://mailman.lug.org.uk/pipermail/phpwm/attachments/20111021/8425b609/attachment.htm>


More information about the Phpwm mailing list