You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi! Sorry for the late reply.
Currently, there is no provided way to visualize the result.
You can still output the result to a file, and then you can see hot paths by using a one-liner like this.
sudo ./php-profiler inspector:trace -p [process ID of the target] > result
cat result | sort | uniq -c | sort -nr
I'm slowly working on a generalized solution for customizing the output format, but I don't have much time to do it for now.
Just adding ad hoc support for outputting a flame graph is easy. So I'll give it a shot in days.
@dndeus
I've just released v0.2.1. This release includes tools for generating flamegraphs borrowed from phpspy. The default format of the traces is adjusted at v0.2.0 to match the output of phpspy, so you can now generate flamegraphs by using commands like following.
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
Hello there
Is there a way to view the results of the profile as a flamegraph r something?? If so can you provide with an example?
Thank you for your efforts
The text was updated successfully, but these errors were encountered: