pprof
Be aware that
pprof will impact the performancepprof will not leak any memory, but it did bloat the memory, see this.Works just like Go`s pprof powered by tikv/pprof-rs.
You can profile the vertex by this command, and you’ll get a flamegraph.
wget "http://127.0.0.1:8080/debug/pprof/profile?seconds=10&frequency=1000&flamegraph=true" -o profile.svgExample
# Which address the pprof server will listen
#
# Required
listen: 127.0.0.1:8080