All books

Professional

Apps About Coach Log in Start reading

Quantitative Finance · Glossary

What is Sampling profiler, hardware performance counter?

Also known as: sampling profiler · hardware performance counter

Definition 5.8 Low-Latency Software · Chapter 5 — Measuring Latency

A sampling profiler interrupts a program at regular intervals (of time or of hardware events) and records where it was, estimating the share of time spent in each function. A hardware performance counter is a register of the processor that counts events (cycles, instructions retired, cache misses, branch mispredictions) for the code running on a core; on Linux they are read through perf_event_open and the perf tool.

Read in context →