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
- All
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[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )
-
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: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
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()
-
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()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
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
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(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )
-
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
-
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