From 513d7a596b19ddc093c30cb234a35b588b68a236 Mon Sep 17 00:00:00 2001 From: sji Date: Fri, 8 Oct 2021 23:56:54 +0900 Subject: [PATCH] update README --- README.md | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 049eaa81..27977bee 100644 --- a/README.md +++ b/README.md @@ -186,7 +186,14 @@ 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 ``` # LICENSE