class PerformanceEvaluation extends Locking
Measures the execution time of some code.
Thread Safety
This class is thread safe.
- Alphabetic
- By Inheritance
- PerformanceEvaluation
- Locking
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Instance Constructors
- new PerformanceEvaluation()
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
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native() @IntrinsicCandidate()
- def doGetTime(s: Symbol): Nanoseconds
Called by the
getTime(Symbol)method.Called by the
getTime(Symbol)method.Thread Safety
The
getTimemethod takes care of the synchronization.- Attributes
- protected[this]
- def doUpdateTimes(s: Symbol, timeSpan: Nanoseconds): Unit
Called by the
timemethod.Called by the
timemethod.Thread Safety
The
timemethod takes care of the synchronization.- Attributes
- protected[this]
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @IntrinsicCandidate()
- final def getMilliseconds(s: Symbol): Milliseconds
- final def getNanoseconds(s: Symbol): Nanoseconds
- final def getSeconds(s: Symbol): Seconds
- final def getTime(s: Symbol): Nanoseconds
Returns the overall time spent by computations with the given symbol.
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @IntrinsicCandidate()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @IntrinsicCandidate()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @IntrinsicCandidate()
- def reset(s: Symbol): Unit
Resets the overall time spent by computations with the given symbol.
- def resetAll(): Unit
Resets everything.
Resets everything. The effect is comparable to creating a new
PerformanceEvaluationobject, but is a bit more efficient. - final val rwLock: ReentrantReadWriteLock
- Attributes
- protected[this]
- Definition Classes
- Locking
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- final def time[T](s: Symbol)(f: => T): T
Times the execution of the given method / function literal / code block and adds it to the execution time of previous methods / function literals / code blocks that were measured and for which the same symbol was used.
Times the execution of the given method / function literal / code block and adds it to the execution time of previous methods / function literals / code blocks that were measured and for which the same symbol was used.
E.g.,time('base_analysis){ ... do something ... }- s
Symbol used to put multiple measurements into relation.
- f
The function that will be evaluated and for which the execution time will be measured.
- 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])
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def withReadLock[B](f: => B): B
Acquires the read lock associated with this instance and then executes the function
f.Acquires the read lock associated with this instance and then executes the function
f. Afterwards, the lock is released.- Attributes
- protected[this]
- Definition Classes
- Locking
- Annotations
- @inline()
- final def withWriteLock[B](f: => B): B
Acquires the write lock associated with this instance and then executes the function
f.Acquires the write lock associated with this instance and then executes the function
f. Afterwards, the lock is released.- Attributes
- protected[this]
- Definition Classes
- Locking
- Annotations
- @inline()
Deprecated Value Members
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable]) @Deprecated @Deprecated
- Deprecated