rest-server icon indicating copy to clipboard operation
rest-server copied to clipboard

CPU Profile

Open gianfelicevincenzo opened this issue 10 months ago • 1 comments

Whathis cpu-profile string? What are the possible values for this option? I found nothing, not even in the documentation that explained this parameter.

gianfelicevincenzo avatar Mar 11 '25 16:03 gianfelicevincenzo

The option is used to create a CPU usage profile for rest-server. See https://go.dev/blog/pprof for more context of the profiling built into the go runtime. You can use it using rest-server --cpu-profile cpu.pprof and then use go tool pprof -no_browser -http localhost:12346 cpu.pprof to analyze it.

MichaelEischer avatar Apr 14 '25 19:04 MichaelEischer