Packages

t

com.codedx.util.Timing

Accumulator

trait Accumulator extends AnyRef

Mix this trait into any class to add the accumTiming, clearTimings, and printTimings variety methods to that class. The target class must provide a timingLabel, which will be prepended to timing messages generated for printing.

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Accumulator
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Abstract Value Members

  1. abstract def timingLabel: String

    This label will be prepended to messages about timings

    This label will be prepended to messages about timings

    Attributes
    protected

Concrete Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. def accumTiming[T](label: String)(job: => T): T

    Perform the given job, and add the time it took to run to the given label.

  5. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  6. def clearTimings(): Unit

    Clear the currently-accumulated times stored by accumTiming

  7. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native() @HotSpotIntrinsicCandidate()
  8. def debugTimings(): Unit

    printTimings, with Timing.debugTime as the printer

  9. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  10. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  11. def getAccumulatedCount(label: String): Long
  12. def getAccumulatedTime(label: String): Long
  13. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  14. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  15. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  16. def logTimings(): Unit

    printTimings, with Timing.logTime as the printer

  17. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  18. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  19. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  20. def printTimings(log: (String, Long) => Unit): Unit

    Print messages about the currently-accumulated times stored by accumTiming.

    Print messages about the currently-accumulated times stored by accumTiming. This method accepts a log function which should print the given message along with the total time (milliseconds) associated with each label.

  21. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  22. implicit val timingAccumulator: Accumulator
  23. def toString(): String
    Definition Classes
    AnyRef → Any
  24. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  25. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  26. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable]) @Deprecated
    Deprecated

Inherited from AnyRef

Inherited from Any

Ungrouped