ProfServe - HTTP-Enabled Profiling for Rust
ProfServe is a Rust crate that provides HTTP endpoints for performance profiling, built on top of pprof-rs. It enables remote profiling capabilities for your Rust applications with flamegraph generation and pprof data export.
Features
- 🚀 HTTP API for remote profiling
- 🔥 Flamegraph generation in SVG format
- 🔒 Async-ready for modern Rust applications
Quick Start
Installation
Add to your Cargo.toml:
[]
= "0.1"
Basic Usage
Making Requests
Get a 10-second profile as flamegraph:
Get raw text pprof data:
API Endpoints
| Endpoint | Method | Parameters | Description |
|---|---|---|---|
/prof/cpu |
GET | seconds, output, frequency |
Capture profile |