Hacker News new | ask | show | jobs
by barrkel 4671 days ago
Sampling for CPU performance, instrumentation for control flow analysis and memory allocation.

The distortion effect of measurement is higher with instrumentation, and is the chief reason I prefer sampling when trying to find performance problems.

But finding CPU performance issues is far from the only reason for using a profiler.