[xdebug-general] Re: [Slightly OT] Production Application Metrics

From: Morgan Tocker <tocker[@]gmail.com>
Date: Wed, 29 Jul 2009 09:42:53 -0400

>> Reading the Xdebug source, this should be fairly easy to do?
>
> Yes, it's quite easy... however using callbacks makes things slow. It
> might better to let the C-extension handle the timer counting as well.
> It would probably be better to provide one method to enable a timer for
> each function passed in an array or so, and another one to retrieve
> statistics.

Thanks for the suggestion. In that case, I'm tempted to even suggest
just using an ini file for the list of functions, and write statistics
to a log file after the request has been sent.

To get wall time, would you suggest using the RINIT / RSHUTDOWN
functions, or are there limitations (like requests being created well
in advance of being used?)?

- Morgan
Received on Wed Jul 29 2009 - 15:43:15 BST

This archive was generated by hypermail 2.2.0 : Mon Jun 25 2018 - 06:00:04 BST