aboutsummaryrefslogtreecommitdiffstats
path: root/serve
diff options
context:
space:
mode:
authoreunhhu <[email protected]>2026-09-27 18:47:05 +0100
committereunhhu <[email protected]>2026-09-27 18:47:05 +0100
commit76f5edb2bcc227c2be743873753792dbc5af1f48 (patch)
tree79fa77f7071567e7d16392f017611b92ec2d6f51 /serve
parentc635e41d8576f5587d47e51a98dfd4a8920315f0 (diff)
downloadpure-76f5edb2bcc227c2be743873753792dbc5af1f48.tar.gz
pure-76f5edb2bcc227c2be743873753792dbc5af1f48.zip
Add a sampling profiler for machines without perf
benchmarks/sample.c runs a command and samples where its threads spend user time (the task clock every 50 us, one perf_event_open event a CPU, since the kernel maps no ring for an inherited per-task event), then names the samples from the ELF symbol tables of the files the command had mapped: a stripped library from its debug file by build id. On arm64 it also takes the link register, so time in a library's leaf (memcpy, strcmp) is shown again by its caller. The command's user and system time head the report.
Diffstat (limited to 'serve')
0 files changed, 0 insertions, 0 deletions