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.
- Alphabetic
- By Inheritance
- Accumulator
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Abstract Value Members
- 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
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- def accumTiming[T](label: String)(job: => T): T
Perform the given
job
, and add the time it took to run to the givenlabel
. - final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clearTimings(): Unit
Clear the currently-accumulated times stored by
accumTiming
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native() @HotSpotIntrinsicCandidate()
- def debugTimings(): Unit
printTimings
, withTiming.debugTime
as the printer - final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def getAccumulatedCount(label: String): Long
- def getAccumulatedTime(label: String): Long
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def logTimings(): Unit
printTimings
, withTiming.logTime
as the printer - final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- 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 alog
function which should print the given message along with the total time (milliseconds) associated with each label. - final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- implicit val timingAccumulator: Accumulator
- def toString(): String
- Definition Classes
- AnyRef → Any
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
Deprecated Value Members
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable]) @Deprecated
- Deprecated