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

Embed
Preview of the card
<a href="https://forumulate.com/p/watchtower/docs/profilers-native"><img src="https://forumulate.com/api/public/orgs/watchtower/spaces/docs/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