From:             [EMAIL PROTECTED]
Operating system: Any
PHP version:      4.1.2
PHP Bug Type:     Feature/Change Request
Bug description:  Support for profiling/function tracking

In complicated scripts, its a big effort tracking function calls to
understand just whats going on. When you're trying to code for effeciency,
you need detailed function calling and timing information. The ticks thing
is a step forward, but it doesnt have any context information.

I'm requesting two things. The first is a ticks variant on the function
level. You can register a function that gets called on every function call
(and maybe another on every function exit). Its important that the
callback is supplied with at least the function's name, so it can
recognize the context. Supplieng it with arguments would be a plus.

The second thing would be exposing the function call stack, so you could
see the caller of the current function, and its caller, all the way to the
top. Being able to retrieve the time the function was called (in msecs)
would be very good, but could be expensive.

-- 
Edit bug report at http://bugs.php.net/?id=16565&edit=1
-- 
Fixed in CVS:        http://bugs.php.net/fix.php?id=16565&r=fixedcvs
Fixed in release:    http://bugs.php.net/fix.php?id=16565&r=alreadyfixed
Need backtrace:      http://bugs.php.net/fix.php?id=16565&r=needtrace
Try newer version:   http://bugs.php.net/fix.php?id=16565&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=16565&r=support
Expected behavior:   http://bugs.php.net/fix.php?id=16565&r=notwrong
Not enough info:     http://bugs.php.net/fix.php?id=16565&r=notenoughinfo
Submitted twice:     http://bugs.php.net/fix.php?id=16565&r=submittedtwice

Reply via email to