nnethercote/dhat-rs
Some data may be outdated — see provenance labels.
Heap profiling and ad hoc profiling for Rust programs. observed · 2026-10-05
Health v2 · maintenance only
23/100
- Activity 0
- Release rhythm 8
- Longevity 100
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-10-21. Adoption (stars, forks) is never an input.
- gap_med: n/a
- age_days: 2144
- days_rel: n/a
- days_push: 607
- n_releases_24m: 0
Adoption not part of the score
1005 stars · 49 forks observed · 2026-10-05
What it is AI-extracted, prompt v1, taxonomy v1, 2026-09-07, confidence 0.95
A Rust crate providing heap profiling and ad hoc profiling capabilities similar to Valgrind's DHAT, without requiring external tools. It also supports heap usage testing, letting tests assert on allocation counts, peak heap usage, and leak-free execution.
Use cases
- profile heap allocations in a Rust program
- find which code causes peak memory usage
- test that code performs exactly N heap allocations
- assert peak heap usage stays under a threshold
- detect memory leaks in Rust tests
- ad hoc profiling of data-intensive code paths
When to choose
- you want DHAT-style profiling without running under Valgrind
- you need programmatic heap usage assertions in tests
- you're debugging excessive allocations or memory growth in Rust
When to avoid
- you need actively maintained tools with fast issue response - the author warns maintenance is not a priority
- you need production profiling rather than development-time analysis
- you need a general-purpose debugger rather than memory profiling
Facets
library · maturity maintenance
benchmarking testing developer-tools developer-tools performance testing rust cross-platform heap-profiling memory-profiling dhat profiling ad-hoc-profiling heap-usage-testing
1 source
- readme: https://github.com/nnethercote/dhat-rs · fetched 2026-10-05 · a6f2098b90c7
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| nnethercote/dhat-rs | main | 23 |
For agents
markdown · JSON · MCP: product_card(name="nnethercote/dhat-rs")
Data as of 2026-10-19T08:05:51.212177+00:00 · Report a problem