adsr / phpspy

low-overhead sampling profiler for PHP 7+

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Support ZTS PHP versions

senseicoder opened this issue · comments

Hi,

We build our own PHP binaries for maintenance reason, and ZTS seems a good idea. Is ZTS support a possibility ?
We just discovered phpspy thanks to Pyroscope, which need it, and we logically have this error

popen_read_line: No stdout; cmd=objdump -Tt /proc/22313/root//usr/sbin/php7.4-fpm | awk '/ executor_globals$/{print $1; exit}'
get_symbol_offset: Failed

which come from phpspy

cedric@prefnttstb1:~$ sudo ./phpspy --limit=1000 --pid=22312
popen_read_line: No stdout; cmd=objdump -Tt '/proc/22312/root//usr/sbin/php7.4-fpm' | awk '/ executor_globals$/{print $1; exit}'
get_symbol_offset: Failed
commented

Yes it is possible. If anyone wants to take a shot at this, a similar project https://github.com/reliforp/reli-prof supports ZTS. A good starting point is here.