Multiply by an exact number, propagating the exactness flag.
Multiply by an exact number, propagating the exactness flag.
exact number
a new Usage object without modifying this one
Add another Usage, propagating the exactness flag (logical-and of this exact and that exact).
Add another Usage, propagating the exactness flag (logical-and of this exact and that exact).
Usage to add
a new Usage object without modifying this one
Add an exact number of bytes to this Usage, propagating the exactness flag.
Add an exact number of bytes to this Usage, propagating the exactness flag.
exact number of bytes
a new Usage object without modifying this one
amount of memory used in bytes
if true, this calculation is exact because the usage of the structure is precisely known; if false, it is an approximation based on polynomial fits to observed usage
Apply Java object padding to this estimate.
Apply Java object padding to this estimate.
Java object padding is Math.ceil(bytes / 8.0).toLong * 8L.
a new Usage object without modifying this one
Represent this memory as a String, using the most convenient units.
Represent this memory as a String, using the most convenient units.
Represent this memory as a String, using a given unit.
Represent this memory as a String, using a given unit.
unit of measurement, such as B (bytes), KB (kilobytes), MB (megabytes), or TB (terabytes)
format string specifying the number of digits of precision (and whatever else you want)
formatted usage string that can be integrated into a larger report
Represents memory usage of an item as a quantity with units and exactness flag.
May be used as an intermediate calculation or a generator of a final report (through its
toStringmethod).amount of memory used in bytes
if
true, this calculation is exact because the usage of the structure is precisely known; iffalse, it is an approximation based on polynomial fits to observed usage