Profile and optimize a Go service using pprof, benchmarks, and the execution tracer to find real bottlenecks.
## CONTEXT I have a Go service that is slower or more memory-hungry than expected. I want to measure before optimizing, using pprof for CPU and heap profiles, the execution tracer for latency, and benchmarks to confirm improvements. Assume current Go tooling and the net/http/pprof endpoint or runtime/pprof. ##…
Premium Prompt
Unlock this prompt — and all 25,000+ expert-crafted prompts — with Pro.
Unlock with Pro