IT lexicon › Programming › Profiler

Profiler

Programming På svenska → Updated: 2026-11-13

A profiler is a development tool that measures CPU, memory, and other resources used by a program to identify performance bottlenecks.

Profiling works by sampling (taking periodic snapshots of the call stack) or instrumentation (injecting measurement code into every function). The results show which functions consume the most CPU time or memory, enabling data-driven optimization. Classic Unix profiling with gprof used instrumentation; modern tools like perf use sampling, which is less invasive. The output often feeds into flame graphs for visual analysis.

← Back to the lexicon