DEV Community

Aleksei Aleinikov
Aleksei Aleinikov

Posted on

πŸ“Š pprof in 2025: Facts > Gut Feelings

Your app feels slow. Instinct says:

  • πŸ‘‰ β€œIt’s the DB.”
  • πŸ‘‰ β€œAdd a cache.”
  • πŸ‘‰ β€œMaybe the network?”

Too often β€” wrong. The real culprit?

  • πŸŒ€ Goroutine leaks
  • πŸ“¦ Naive string concatenation
  • πŸ—„οΈ Unbounded caches

That’s where pprof steps in: CPU, memory, goroutines, blocking. No guesses β€” just facts.

In my latest post I show:

  • How to enable profiling (services + CLI jobs)
  • The 3 essential commands (top, list, web)
  • Real-world examples with fixes: leaky tickers, string allocations, runaway cache

πŸ‘‰ Full article: Architecture and Code in 2025: pprof as the Tool of Truth https://medium.datadriveninvestor.com/architecture-and-code-in-2025-pprof-as-the-tool-of-truth-303e3f59f4b3

Top comments (0)