1
0
mirror of https://github.com/bspeice/qadapt synced 2024-11-14 10:08:08 -05:00
Go to file
2018-11-22 11:19:31 -05:00
examples Warning message if guards without allocator enabled 2018-11-22 11:19:31 -05:00
qadapt-macro Update versions and CHANGELOG 2018-11-18 21:30:55 -05:00
src Warning message if guards without allocator enabled 2018-11-22 11:19:31 -05:00
tests Fix conditional compilation guards 2018-11-18 21:29:32 -05:00
.gitignore Fix conditional compilation guards 2018-11-18 21:29:32 -05:00
Cargo.toml Warning message if guards without allocator enabled 2018-11-22 11:19:31 -05:00
CHANGELOG Update versions and CHANGELOG 2018-11-18 21:30:55 -05:00
LICENSE Get licensing and stuff in place 2018-11-17 10:39:38 -05:00
README.md Get version 0.4 ready 2018-11-15 20:16:49 -05:00

The Quick And Dirty Allocation Profiling Tool

crates.io docs.rs

This allocator is a helper for writing high-performance code that is allocation/drop free; for functions annotated with #[allocate_panic], QADAPT will detect when allocations/drops happen during their execution (and execution of any functions they call) and throw a thread panic if this occurs.

Because QADAPT panics on allocation and is rather slow (for an allocator) it is strongly recommended that QADAPT (the allocator) be used only in code tests. Functions annotated with #[allocate_panic] will have no side effects if the QADAPT allocator is not being used, so the attribute is safe to leave everywhere.

Currently this crate is Nightly-only, but will work once const fn is in Stable.