Advanced
Go (Golang)
Q99 / 100
What is Go's profiling tool chain for CPU and memory?
Correct! Well done.
Incorrect.
The correct answer is B) go test -cpuprofile/memprofile generates profiles; go tool pprof analyzes them with web, top, list commands; net/http/pprof serves live profiles
B
Correct Answer
go test -cpuprofile/memprofile generates profiles; go tool pprof analyzes them with web, top, list commands; net/http/pprof serves live profiles
Explanation
runtime.StartCPUProfile writes to a file. net/http/pprof exposes /debug/pprof/ endpoints. go tool pprof http://localhost:8080/debug/pprof/heap provides interactive analysis.
Progress
99/100