Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add support for speedscope #101

Merged
merged 4 commits into from
Oct 8, 2021
Merged

add support for speedscope #101

merged 4 commits into from
Oct 8, 2021

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