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 flamegraph visualizer #41

Merged
merged 2 commits into from
Aug 2, 2021
Merged

Add flamegraph visualizer #41

merged 2 commits into from
Aug 2, 2021

Conversation

sj-i
Copy link
Member

@sj-i sj-i commented Aug 2, 2021

Solves #22 partially.

You can now generate flamegraphs from traces.

sudo php ./php-profiler inspector:trace -p [pid of the target process or thread] >traces
./tools/stackcollapse-phpspy/stackcollapse-phpspy.pl <traces | ./tools/flamegraph/flamegraph.pl >flame.svg

@sj-i sj-i merged commit b2da654 into master Aug 2, 2021
@sj-i sj-i deleted the add-flamegraph-visualizer branch August 2, 2021 15:30
@sj-i
Copy link
Member Author

sj-i commented Oct 8, 2021

#100 added a shortcut command for this.

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