6 releases
| 0.1.5 | Feb 23, 2023 |
|---|---|
| 0.1.4 | Nov 4, 2022 |
| 0.1.3 | Oct 21, 2022 |
| 0.1.1 | Sep 14, 2022 |
#218 in Profiling
34,160 downloads per month
Used in 43 crates
(5 directly)
73KB
2K
SLoC
Size Of
A crate for measuring the total memory usage of an object at runtime
Features
size-of has built-in support for many 3rd party crates that can be enabled with feature flags
std: Enables support for the rust standard library (enabled by default, when disabledsize-ofis#![no_std]compatible)derive: Enables support for#[derive(SizeOf)](enabled by default)time: Enables support for thetimecratetime-std: Enables support fortime'sstdfeature
chrono: Enables support for thechronocratehashbrown: Enables support for thehashbrowncratefxhash: Enables support for thefxhashcraterust_decimal: Enables support for therust_decimalcrateordered-float: Enables support for theordered-floatcrateahash: Enables support for theahashcrateahash-std: Enables support forahash'sstdfeature
xxhash-rust: Enables support for thexxhash-rustcratexxhash-xxh32: Enables support forxxhhash-rust'sxxh32featurexxhash-xxh64: Enables support forxxhhash-rust'sxxh64featurexxhash-xxh3: Enables support forxxhhash-rust'sxxh3feature
Dependencies
~0–1.4MB
~25K SLoC