abstract class Statistics extends AnyRef
- Alphabetic
- By Inheritance
- Statistics
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
- new Statistics(symbolTable: SymbolTable, settings: MutableSettings)
Type Members
- class Counter extends Quantity with Ordered[Counter]
-
class
QuantMap[K, V] extends HashMap[K, V] with SynchronizedMap[K, V] with Quantity
A mutable map quantity where missing elements are automatically inserted on access by executing
initValue
. -
trait
Quantity extends AnyRef
The base trait for quantities.
The base trait for quantities. Quantities with non-empty prefix are printed in the statistics info.
- class StackableTimer extends SubTimer with Ordered[StackableTimer]
- class SubCounter extends Counter with SubQuantity
- trait SubQuantity extends Quantity
- class SubTimer extends Timer with SubQuantity
- class Timer extends Quantity
- type TimerSnapshot = (Long, Long)
-
class
TimerStack extends AnyRef
A stack of timers, all active, where a timer's specific "clock" is stopped as long as it is buried by some other timer in the stack, but its aggregate clock keeps on ticking.
A stack of timers, all active, where a timer's specific "clock" is stopped as long as it is buried by some other timer in the stack, but its aggregate clock keeps on ticking.
Note: Not threadsafe
- class View extends Quantity
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 allQuantities: Iterable[Quantity]
-
final
def
areStatisticsLocallyEnabled: Boolean
Tells whether statistics should be definitely reported to the user for this
Global
instance.Tells whether statistics should be definitely reported to the user for this
Global
instance.- Annotations
- @inline()
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
final
def
enabled: Boolean
Represents whether normal statistics can or cannot be enabled.
Represents whether normal statistics can or cannot be enabled.
- Annotations
- @inline()
- def enabled_=(cond: Boolean): Unit
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
final
def
hotEnabled: Boolean
Represents whether hot statistics can or cannot be enabled.
Represents whether hot statistics can or cannot be enabled.
- Annotations
- @inline()
- def hotEnabled_=(cond: Boolean): Unit
-
final
def
incCounter[K](ctrs: QuantMap[K, Counter], key: K): Unit
If enabled, increment counter in map
ctrs
at indexkey
by oneIf enabled, increment counter in map
ctrs
at indexkey
by one- Annotations
- @inline()
-
final
def
incCounter(c: Counter, delta: Int): Unit
If enabled, increment counter by given delta
If enabled, increment counter by given delta
- Annotations
- @inline()
-
final
def
incCounter(c: Counter): Unit
If enabled, increment counter by one
If enabled, increment counter by one
- Annotations
- @inline()
- def initFromSettings(currentSettings: MutableSettings): Unit
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
newByClass[V](prefix: String, phases: String*)(initValue: ⇒ V)(implicit arg0: (V) ⇒ Ordered[V]): QuantMap[Class[_], V]
Same as newQuantMap, where the key type is fixed to be Class[_]
-
def
newCounter(prefix: String, phases: String*): Counter
Create a new counter that shows as
prefix
and is active in given phases -
def
newQuantMap[K, V](prefix: String, phases: String*)(initValue: ⇒ V)(implicit arg0: (V) ⇒ Ordered[V]): QuantMap[K, V]
Create a new quantity map that shows as
prefix
and is active in given phases. -
def
newRelCounter(prefix: String, ctr: Counter): Counter
Create a new relative counter that shows as
prefix
and is active in the same phases as its base counter.Create a new relative counter that shows as
prefix
and is active in the same phases as its base counter. Relative counters print as percentages of their base counters. -
def
newStackableTimer(prefix: String, timer: Timer): StackableTimer
Create a new stackable that shows as
prefix
and is active in the same phases as its base timer.Create a new stackable that shows as
prefix
and is active in the same phases as its base timer. Stackable timers are subtimers that can be stacked in a timerstack, and that print aggregate, as well as specific durations. -
def
newSubCounter(prefix: String, ctr: Counter): SubCounter
Create a new subcounter that shows as
prefix
and is active in the same phases as its base counter.Create a new subcounter that shows as
prefix
and is active in the same phases as its base counter. Subcounters can track increments of their base counters and print as percentages of their base counters. -
def
newSubTimer(prefix: String, timer: Timer): Timer
Create a new subtimer that shows as
prefix
and is active in the same phases as its base timer.Create a new subtimer that shows as
prefix
and is active in the same phases as its base timer. Subtimers can track increments of their base timers and print as percentages of their base timers. -
def
newTimer(prefix: String, phases: String*): Timer
Create a new counter that shows as
prefix
and is active in given phases -
def
newTimerStack(): TimerStack
Create a new timer stack
-
def
newView(prefix: String, phases: String*)(quant: ⇒ Any): View
Create a new view that shows as
prefix
and is active in given phases.Create a new view that shows as
prefix
and is active in given phases. The view always reflects the current value ofquant
as a quantity. -
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
popTimer(timers: TimerStack, prev: TimerSnapshot): Unit
If enabled, stop and pop timer from timer stack
If enabled, stop and pop timer from timer stack
- Annotations
- @inline()
-
final
def
pushTimer(timers: TimerStack, timer: ⇒ StackableTimer): TimerSnapshot
If enabled, push and start a new timer in timer stack
If enabled, push and start a new timer in timer stack
- Annotations
- @inline()
-
final
def
reportStatisticsOverhead(reporter: Reporter): Unit
Reports the overhead of measuring statistics via the nanoseconds variation.
-
final
def
startCounter(sc: SubCounter): (Int, Int)
If enabled, start subcounter.
If enabled, start subcounter. While active it will track all increments of its base counter.
- Annotations
- @inline()
-
final
def
startTimer(tm: Timer): TimerSnapshot
If enabled, start timer
If enabled, start timer
- Annotations
- @inline()
-
final
def
stopCounter(sc: SubCounter, start: (Int, Int)): Unit
If enabled, stop subcounter from tracking its base counter.
If enabled, stop subcounter from tracking its base counter.
- Annotations
- @inline()
-
final
def
stopTimer(tm: Timer, start: TimerSnapshot): Unit
If enabled, stop timer
If enabled, stop timer
- Annotations
- @inline()
- val symbolTable: SymbolTable
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
final
def
timed[T](timer: Timer)(body: ⇒ T): T
Helper for measuring the overhead of a concrete thunk
body
.Helper for measuring the overhead of a concrete thunk
body
.- Annotations
- @inline()
-
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
- @throws( ... ) @native()