Advanced
Go (Golang)
Q62 / 100
What is pprof and when would you use it?
Correct! Well done.
Incorrect.
The correct answer is A) A performance profiler that samples CPU usage, memory allocations, goroutine stacks, and more
A
Correct Answer
A performance profiler that samples CPU usage, memory allocations, goroutine stacks, and more
Explanation
Import net/http/pprof for HTTP endpoints. Use go tool pprof to analyze CPU profiles (find hot paths), heap profiles (memory leaks), and goroutine dumps.
Progress
62/100