Skip to content

Comment on Profiling with Ctrl-C (2024)

Comments

Sure, it's a fine technique if essentially one thing is consuming all the CPU time (and it shouldn't), which does happen. It becomes tedious when you're looking for the thing that consumes 20% or so of the CPU time.

Yes, this method is probably fine for finding the one big offender. But you quickly reach a point where you see 5% here and 5% there. Then you need a real profiler.

Luckily the article discusses that.

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.