# Allocation Sampling and Profiling
- [`sample-profile.c`](sample-profile.c): Allocation sampling, profiler callbacks.
- [`sample-guarded.c`](sample-guarded.c): Sampled allocations protected by guard pages.
- [`pprof.c`](pprof.c): Default heap profiler implementation with stack traces and pprof-compatible text or protobuf snapshots.