rest-server
rest-server copied to clipboard
CPU Profile
Whathis cpu-profile string? What are the possible values for this option? I found nothing, not even in the documentation that explained this parameter.
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.