aboutsummaryrefslogtreecommitdiffstats
path: root/.gitignore
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 /.gitignore
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 '.gitignore')
-rw-r--r--.gitignore1
1 files changed, 1 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index 4d30289..f8cdd02 100644
--- a/.gitignore
+++ b/.gitignore
@@ -7,5 +7,6 @@ __pycache__/
/prototypes/*/node_modules/
/benchmarks/http/axum-baseline/target/
/benchmarks/http/load
+/benchmarks/sample
/benchmarks/http/*.pmod
/build/