Skip to content

Conversation

sj-i
Copy link
Member

@sj-i sj-i commented Oct 8, 2021

See jlfwong/speedscope

Now you can use converter:speedscope to visualize traces via speedscope.
Both outputs from phpspy or php-profiler (the default phpspy-compatible format) are supported.

You can install speedscope on your local machine.

npm install -g speedscope

Then output traces from php-profiler

sudo php ./php-profiler inspector:trace -p <pid of the target process or thread> >traces

or from phpspy.

sudo phpspy -p <pid of the target process> >traces

Convert it to the speedscope format and open it by speedscope.

./php-profiler converter:speedscope <traces >profile.speedscope.json
speedscope profile.speedscope.json

@sj-i sj-i merged commit 931c805 into master Oct 8, 2021
@sj-i sj-i deleted the speedscope branch October 8, 2021 15:03
This was referenced Oct 8, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant