trait Jvm extends AnyRef
Access JVM internal performance counters. We maintain a strict interface so that we are decoupled from the actual underlying JVM.
- Alphabetic
- By Inheritance
- Jvm
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Abstract Value Members
-
abstract
def
applicationTime: Long
Gets the applicationTime (total time running application code since the process started) in nanoseconds or 0, if the metric is unavailable.
- abstract def edenPool: Pool
- abstract def forceGc(): Unit
-
abstract
def
metaspaceUsage: Option[MetaspaceUsage]
Gets the current usage of the metaspace, if available.
-
abstract
val
opts: Opts
Current VM-specific options.
-
abstract
def
safepoint: Safepoint
Gets the time spent at safepoints (totalTimeMillis), the time getting to safepoints (syncTimeMillis), and safepoints reached (count).
-
abstract
def
snap: Snapshot
Snapshot of JVM state.
-
abstract
def
snapCounters: Map[String, String]
Get a snapshot of all performance counters.
-
abstract
def
tenuringThreshold: Long
Gets the current tenuringThreshold (times an object must survive GC in order to be promoted) or 0, if the metric is unavailable.
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
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- def executor: ScheduledExecutorService
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
def
foreachGc(f: (Gc) ⇒ Unit): Unit
Invoke
ffor every Gc event in the system.Invoke
ffor every Gc event in the system. This samplessnapin order to synthesize a unique stream of Gc events. It's important thatfis not constructed so that it's likely to, by itself, trigger another Gc event, causing an infinite loop. The same is true of the internal datastructures used by foreachGc, but they are svelte. -
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
def
logger: Logger
- Attributes
- protected
-
def
mainClassName: String
Get the main class name for the currently running application.
Get the main class name for the currently running application. Note that this works only by heuristic, and may not be accurate.
TODO: take into account the standard callstack around scala invocations better.
-
def
monitorGcs(bufferFor: Duration): (Time) ⇒ Seq[Gc]
Monitors Gcs using
foreachGc, and returns a function to query its timeline (up tobufferin the past).Monitors Gcs using
foreachGc, and returns a function to query its timeline (up tobufferin the past). Querying is cheap, linear to the number of Gcs that happened since the queried time. The result is returned in reverse chronological order. -
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()
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
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()