# tikv/pprof-rs

A Rust CPU profiler implemented with the help of backtrace-rs

Repository: https://github.com/tikv/pprof-rs
Canonical: https://ross.abutalabs.com/products/pprof-rs
Language: Rust
License: Apache-2.0
License Family: permissive
Last push: 2026-04-23T00:10:09+00:00

## Health v2 (maintenance only)
Score: 67/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 78, release rhythm 35, longevity 100
- inputs: {"age_days": 2508, "days_push": 133, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_releases
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1649, forks 143 (observed 2026-08-28T04:05:16.761800+00:00)

## What it is
pprof-rs is a CPU profiler library for Rust programs, built on top of backtrace-rs. It samples running threads and produces stack-trace reports that can be rendered as flamegraphs or exported in pprof-compatible formats.

## Use cases
- profile cpu usage of a rust program
- find hot functions in my rust application
- generate flamegraphs from rust code
- sample stack traces while my service runs
- export profiling data in pprof format
- diagnose performance bottlenecks in rust

## When to choose
- you need in-process CPU profiling for a Rust application
- you want flamegraph or pprof-format output from Rust code
- you want profiling integrated programmatically via a guard API

## When to avoid
- you need whole-system or multi-process profiling
- you are profiling non-Rust languages
- you need heap/memory profiling rather than CPU sampling

## Facets
- artifact type: library
- maturity: active
- function: monitoring, developer-tools, benchmarking
- domain: developer-tools, performance
- platform: rust
- tags: cpu-profiling, profiler, pprof-format, flamegraph, backtrace, sampling-profiler, linux, macos

## Member repositories
- tikv/pprof-rs (main) score 67

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:05:16.761800+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T03:45:10.748337+00:00, confidence not recorded.
  - readme: https://github.com/tikv/pprof-rs (fetched 2026-08-28T04:05:16.761800+00:00, sha 751b9544da8f)
- Data as of 2026-08-30T08:39:29.467469+00:00.
