Native (C, C++, any Linux binary)

Embed
Preview of the card
<a href="https://watchtowerops.net/docs/profilers-native"><img src="https://watchtowerops.net/docs/_api/public/orgs/aa5959cb-1a0b-4a9a-bc9a-913e7ac31cd9/spaces/b7aac181-9916-4805-b253-becc5fd2ca62/pages/78616468-f011-49f9-a5ab-c58e812d20d3/social-card.svg?v=3e7ae33eec8b" alt="Native (C, C++, any Linux binary)" width="600" height="315"></a>

External profiler: Linux perf plus FlameGraph's stackcollapse-perf.pl. Sample types: cpu. Span links: no. Linux only; perf needs permission (perf_event_paranoid) for the target. Windows ETW and eBPF whole-host profiling are not supported.

perf record -F 99 -g -p <pid> -- sleep 60
perf script | stackcollapse-perf.pl > cpu.collapsed
wtctl profile upload cpu.collapsed --service checkout --version 1.4.2 --format folded

Fixture: fixtures/perf-script.collapsed.

Updated