From:             williama_lovaton at coomeva dot com dot co
Operating system: Linux
PHP version:      Irrelevant
Package:          Performance problem
Bug Type:         Feature/Change Request
Bug description:Get a PHP stack trace on process signal

Description:
------------
I'm not sure if this is possible to implement or if it's implemented now
but I'd like a way to get a PHP stack trace of a running process on any
given time (may be using a process signal with kill).

This would be very similar to what you can do with Java, you do a "kill -3
<pid>" but the process doesn't die, instead it outputs a full backtrace of
Java code of every thread and the current state.

You can do something similar now using the gstack command from GDB but
you'll get a stack trace from the C code.  I'd like to be able to get a
stack trace but from the PHP code so that I can analyze where is the exact
point in the program where my web app is running slow or getting stuck.

My web app is instrumented and I can get logs from slow functions but this
is information I get after the fact.  With this feature request it would be
possible to get the information exactly when it is happening.

Is this possible?  If so, would it be possible to make it work if PHP is
being run as an Apache module?

Thanks a lot for your time.


-- 
Edit bug report at https://bugs.php.net/bug.php?id=64709&edit=1
-- 
Try a snapshot (PHP 5.4):   
https://bugs.php.net/fix.php?id=64709&r=trysnapshot54
Try a snapshot (PHP 5.3):   
https://bugs.php.net/fix.php?id=64709&r=trysnapshot53
Try a snapshot (trunk):     
https://bugs.php.net/fix.php?id=64709&r=trysnapshottrunk
Fixed in SVN:               https://bugs.php.net/fix.php?id=64709&r=fixed
Fixed in release:           https://bugs.php.net/fix.php?id=64709&r=alreadyfixed
Need backtrace:             https://bugs.php.net/fix.php?id=64709&r=needtrace
Need Reproduce Script:      https://bugs.php.net/fix.php?id=64709&r=needscript
Try newer version:          https://bugs.php.net/fix.php?id=64709&r=oldversion
Not developer issue:        https://bugs.php.net/fix.php?id=64709&r=support
Expected behavior:          https://bugs.php.net/fix.php?id=64709&r=notwrong
Not enough info:            
https://bugs.php.net/fix.php?id=64709&r=notenoughinfo
Submitted twice:            
https://bugs.php.net/fix.php?id=64709&r=submittedtwice
register_globals:           https://bugs.php.net/fix.php?id=64709&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=64709&r=php4
Daylight Savings:           https://bugs.php.net/fix.php?id=64709&r=dst
IIS Stability:              https://bugs.php.net/fix.php?id=64709&r=isapi
Install GNU Sed:            https://bugs.php.net/fix.php?id=64709&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=64709&r=float
No Zend Extensions:         https://bugs.php.net/fix.php?id=64709&r=nozend
MySQL Configuration Error:  https://bugs.php.net/fix.php?id=64709&r=mysqlcfg

Reply via email to