We can use flamegraph to profile xiu binary, use the following command to generate svg file:
sudo flamegraph -o my_flamegraph.svg -- ./xiu -w
or if the executable is already running, you can provide the PID via -p (or --pid) flag:
-p
--pid
sudo flamegraph -o my_flamegraph.svg --pid 1337
And then open the svg file in browser to see the flame graph.
There was an error while loading. Please reload this page.