Allocation Sampling and Profiling

  • sample-profile.c: Allocation sampling, profiler callbacks.
  • sample-guarded.c: Sampled allocations protected by guard pages.
  • pprof.c: Default heap profiler implementation with stack traces and pprof-compatible text or protobuf snapshots.