From d5b882ed3c259db0caeef45b073ea5abda15b2c6 Mon Sep 17 00:00:00 2001 From: sji Date: Fri, 8 Oct 2021 23:56:54 +0900 Subject: [PATCH] update README --- README.md | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) 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.