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 |
#155 in Profiling
3,933 downloads per month
Used in 13 crates
(3 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-of
is#![no_std]
compatible)derive
: Enables support for#[derive(SizeOf)]
(enabled by default)time
: Enables support for thetime
cratetime-std
: Enables support fortime
'sstd
feature
chrono
: Enables support for thechrono
cratehashbrown
: Enables support for thehashbrown
cratefxhash
: Enables support for thefxhash
craterust_decimal
: Enables support for therust_decimal
crateordered-float
: Enables support for theordered-float
crateahash
: Enables support for theahash
crateahash-std
: Enables support forahash
'sstd
feature
xxhash-rust
: Enables support for thexxhash-rust
cratexxhash-xxh32
: Enables support forxxhhash-rust
'sxxh32
featurexxhash-xxh64
: Enables support forxxhhash-rust
'sxxh64
featurexxhash-xxh3
: Enables support forxxhhash-rust
'sxxh3
feature
Dependencies
~0–1.3MB
~23K SLoC