Expand description
Memusage is a simple dependency for memory usage autoreporting.
It contains a single trait an default implementations for core and std.
To use this crate simply import the MemoryReport trait. This gives access
to 3 methods T::direct(), T::indirect(&self) and T::children(&self).
The total memory usage of a struct will be the sum of the 3 measurements.
All measurements for allocating structs (e.g. HashMap) are estimations.
This is due to hidden fields in these structs, compiler optmimizations and
other miscellaneous effects.