1
0
mirror of https://github.com/bspeice/qadapt synced 2024-11-24 14:58:12 -05:00
Go to file
2018-11-11 22:34:05 -05:00
qadapt-macro Final cleanup, time to commit 2018-11-11 22:34:05 -05:00
src Final cleanup, time to commit 2018-11-11 22:34:05 -05:00
tests Final cleanup, time to commit 2018-11-11 22:34:05 -05:00
.gitignore Add an initial pass on an allocation tracing tool 2018-09-21 22:34:42 -04:00
Cargo.toml Final cleanup, time to commit 2018-11-11 22:34:05 -05:00
README.md Final cleanup, time to commit 2018-11-11 22:34:05 -05:00

The Quick And Dirty Allocation Profiling Tool

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.