com.opendatagroup.hadrian.memory

Usage

case class Usage(bytes: Long, exact: Boolean = true) extends Product with Serializable

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 toString method).

bytes

amount of memory used in bytes

exact

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

Linear Supertypes
Serializable, Serializable, Product, Equals, AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Usage
  2. Serializable
  3. Serializable
  4. Product
  5. Equals
  6. AnyRef
  7. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

  1. new Usage(bytes: Long, exact: Boolean = true)

    bytes

    amount of memory used in bytes

    exact

    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

Value Members

  1. final def !=(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  3. final def ##(): Int

    Definition Classes
    AnyRef → Any
  4. def *(times: Long): Usage

    Multiply by an exact number, propagating the exactness flag.

    Multiply by an exact number, propagating the exactness flag.

    times

    exact number

    returns

    a new Usage object without modifying this one

  5. def +(that: Usage): Usage

    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).

    that

    Usage to add

    returns

    a new Usage object without modifying this one

  6. def +(more: Long): Usage

    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.

    more

    exact number of bytes

    returns

    a new Usage object without modifying this one

  7. final def ==(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  8. final def ==(arg0: Any): Boolean

    Definition Classes
    Any
  9. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  10. val bytes: Long

    amount of memory used in bytes

  11. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  12. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  13. val exact: Boolean

    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

  14. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  15. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  16. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  17. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  18. final def notify(): Unit

    Definition Classes
    AnyRef
  19. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  20. def pad: 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.

    returns

    a new Usage object without modifying this one

  21. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  22. def toString(): String

    Represent this memory as a String, using the most convenient units.

    Represent this memory as a String, using the most convenient units.

    Definition Classes
    Usage → AnyRef → Any
  23. def toString(unit: MemoryUnit, formatter: String = "%.3f"): String

    Represent this memory as a String, using a given unit.

    Represent this memory as a String, using a given unit.

    unit

    unit of measurement, such as B (bytes), KB (kilobytes), MB (megabytes), or TB (terabytes)

    formatter

    format string specifying the number of digits of precision (and whatever else you want)

    returns

    formatted usage string that can be integrated into a larger report

  24. final def wait(): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  25. final def wait(arg0: Long, arg1: Int): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  26. final def wait(arg0: Long): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from Serializable

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from AnyRef

Inherited from Any

Ungrouped