diff --git a/README.md b/README.md index 049eaa81..6c6d040a 100644 --- a/README.md +++ b/README.md @@ -186,9 +186,19 @@ docker run -it --security-opt="apparmor=unconfined" --cap-add=SYS_PTRACE --pid=h ### Generate flamegraphs from traces ```bash sudo php ./php-profiler inspector:trace -p >traces -./tools/stackcollapse-phpspy/stackcollapse-phpspy.pl flame.svg +./php-profiler converter:flamegraph flame.svg ``` +### Generate the [speedscope](https://github.com/jlfwong/speedscope) format from phpspy compatible traces +```bash +sudo php ./php-profiler inspector:trace -p >traces +./php-profiler converter:speedscope profile.speedscope.json +speedscope profile.speedscope.json +``` + +See [#101](https://github.com/sj-i/php-profiler/pull/101). + + # LICENSE - MIT (mostly) - Some C headers defining internal structures are extracted from php-src. They are licensed under the zend engine license. See src/Lib/PhpInternals/Headers . So here are the words required by the zend engine license.