Hello Jacob Take a look at http://pinba.org/ . While this is probably not exactly (or may be even not at all) the thing you asked for, it is definitely interesting. It allows for some profiling *right on production. *There are certain things that you only experience under heavy load, and this tool may let you know what's happening.
Cheers, Victor 2014-12-24 14:16 GMT+03:00 Derick Rethans <der...@php.net>: > On Tue, 23 Dec 2014, Stanislav Malyshev wrote: > > > > The questions I have are: - Is this even possible? > > > > Yes, should be possible but: > > 1. If you want precision, it would slow down your code a lot, as > > basically you need to record timing of each opcode, which can be very > > expensive. > > 2. If you're ok with less precision, you can do sampling, but in that > > case you probably need your script to spend a lot of time in the same > > areas of the code to have any meaningful results, otherwise it'd be just > > random. > > > > > - Are there any projects out there or being worked on that achieve > > > this? > > > > Most of the profilers afaik go by functions. Most probably because > > line-level profiling would be so intrusive as to not produce really > > valid results, but maybe it can be done in a way that is not that > > intrusive. > > I have played with it for Xdebug, but it was too much of a slow down to > be of any use... > > cheers, > Derick > > -- > http://derickrethans.nl | http://xdebug.org > Like Xdebug? Consider a donation: http://xdebug.org/donate.php > twitter: @derickr and @xdebug > Posted with an email client that doesn't mangle email: alpine > > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php > >