The phtrace extension provides a way to record the trace of a php script execution. It records function call timing which allows to build flame graphs. It uses RDTSCP for high resolution timing.
This extension is experimental. Please do not use it in production.
phpize
./configure
make
make install