#pprof #profiling #server

pprof_hyper_server

A minimal pprof server implementation using hyper without runtime dependency

6 releases

Uses new Rust 2024

new 0.2.0 Sep 5, 2025
0.1.4 Aug 20, 2025

#456 in HTTP server

Download history 168/week @ 2025-08-10 257/week @ 2025-08-17 104/week @ 2025-08-24 119/week @ 2025-08-31

648 downloads per month

MIT/Apache

29KB
181 lines

continuous-integration

pprof-hyper-server

A minimal pprof server implementation using hyper without runtime dependency

About

Easily CPU/memory profile your Rust application with pprof.

For more details, see:

You most likely need a linux-ish machine for it to work (current msvc is not supported for both cpu and memory profiling).

Cargo features

  • pprof_cpu enables HTTP endpoint for CPU profiling.
  • pprof_heap enables HTTP endpoint for heap profiling.
  • pprof enables pprof_cpu and pprof_heap.

Basic API usage with pprof client

Install pprof client or use the one from Golang toolchain.

With Golang toolchain:

go tool pprof --http=: http://localhost:6060/debug/pprof/profile # CPU profiling
go tool pprof --http=: http://localhost:6060/debug/pprof/allocs # memory profiling

Dependencies

~6–20MB
~264K SLoC