object HotPathMetrics
Opt-in invocation counters for the ALS performance harness — see documentation/performance-measurement-harness.md.
Lives in main (not test) only so production hot-path code can call inc; it stays dormant unless a test or
benchmark calls enable. Two invariants worth preserving on edit: disabled is the production default and inc
is then a single volatile read (no allocation/lock), and the state is plain var/mutable.Map with no
java.util.concurrent to keep JVM/JS parity (shared code).
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- HotPathMetrics
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- All
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( ... ) @native() @IntrinsicCandidate()
- def disable(): Unit
- def enable(): Unit
- def enabled: Boolean
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- def get(key: String): Long
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @IntrinsicCandidate()
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @IntrinsicCandidate()
- def inc(key: String): Unit
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
def
measure[T](body: ⇒ T): (T, Map[String, Long])
Not reentrant or concurrent-safe across
measure/enable/disable; the counters are, but the enabled-flag window is for single-threaded harness use (one benchmark/test at a time). -
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 render(): String
- def reset(): Unit
- def snapshot(): Map[String, Long]
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
- object Keys
Deprecated Value Members
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] ) @Deprecated
- Deprecated