dhat

Crates.iodhat
lib.rsdhat
version0.3.3
sourcesrc
created_at2020-12-08 00:50:17.471608
updated_at2024-02-04 03:47:29.691826
descriptionA library for heap profiling and ad hoc profiling with DHAT.
homepagehttps://github.com/nnethercote/dhat-rs
repositoryhttps://github.com/nnethercote/dhat-rs
max_upload_size
id320667
size120,312
Nicholas Nethercote (nnethercote)

documentation

README

dhat-rs

Warning: This crate is experimental. It relies on implementation techniques that are hard to keep working for 100% of configurations. It may work fine for you, or it may crash, hang, or otherwise do the wrong thing. Its maintenance is not a high priority of the author. Support requests such as issues and pull requests may receive slow responses, or no response at all. Sorry!

This crate provides heap profiling and ad hoc profiling capabilities to Rust programs, similar to those provided by DHAT.

It also provides heap usage testing capabilities, which let you write tests that check things like:

  • "This code should do exactly 96 heap allocations".
  • "The peak heap usage of this code should be less than 10 MiB".
  • "This code should free all heap allocations before finishing".

It provides helpful details if these fail.

See the crate documentation for details on how to use it.

License

Licensed under either of

at your option.

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.

Commit count: 125

cargo fmt