I have also been thinking about the profiling system recently,  xhprof is a
really nice library which i use locally(quick plug: try the vagrant
`xhprof` role).  There are quite a few wfProfileIn/Out calls currently that
generate sub-ms events.  I am fairly certain these could be more accurately
tracked with a php extension like xhprof.

I see wfProfileIn/Out data as still useful though, in one example for
generating high level views for developers into what is happening(another
plug, i wrote a visualization of wfProfileIn/Out data for the debug toolbar
last weekend[1]).  Also for the ?forceprofile=1 and ?forcetrace=1 options
in production.

I think there is room for both our DIY and xhprof(but probably not xdebug
in prod, its way too slow when generating traces).

Erik B.

[1] https://gerrit.wikimedia.org/r/#/c/104318/



On Tue, Dec 31, 2013 at 9:55 AM, Chad <[email protected]> wrote:

> I'm starting a new RFC to discuss ways we can improve our PHP profiling.
>
> https://www.mediawiki.org/wiki/Requests_for_comment/Better_PHP_profiling
>
> Please feel free to help expand and/or comment on the talk page if you've
> got ideas :)
>
> -Chad
> _______________________________________________
> Wikitech-l mailing list
> [email protected]
> https://lists.wikimedia.org/mailman/listinfo/wikitech-l
_______________________________________________
Wikitech-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikitech-l

Reply via email to