phpspy
phpspy copied to clipboard
low-overhead sampling profiler for PHP 7+
https://developer.apple.com/documentation/kernel/1585350-vm_read?language=objc
Previously, it would print the message `copy_proc_mem: Not copying zfunc; raddr is NULL` even if subsequent frames from execute_data could have been read (e.g. Redis::evalsha and other redis methods were...
Install the perl helpers and add a simple wrapper to make it easy to generate flamegraphs
This is a WIP for module support, and depends on CMake PR The basic idea is that phpspy should export handler pointer, LD_PRELOAD is used to load the module and...
initial cmake build, and some readme ... The custom target for submodules is a bit strange for a cmake build, but tries to immitate (somewhat) the original Makefile ... It...
Suggested by @tuaris https://github.com/adsr/phpspy/issues/50#issuecomment-714008497
Make a simple string type to replace all the `buf, buf_len, buf_size` params.
E.g. given the core dump and the path to the php binary (and possibly shared libraries it uses), would showing the php stack trace with php method names be possible....
This was @krakjoe 's idea. I think we have a head start on this as the tracing code is already decoupled with the event handling code. See: https://github.com/adsr/phpspy/blob/e9927c8e7a8cdf6763d163bfaa60cec313cb37c0/phpspy.c#L262 https://github.com/adsr/phpspy/blob/e9927c8e7a8cdf6763d163bfaa60cec313cb37c0/event_fout.c#L12 Maybe...