trait Jvm extends AnyRef

Access JVM internal performance counters. We maintain a strict interface so that we are decoupled from the actual underlying JVM.

Linear Supertypes
Known Subclasses
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Jvm
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Type Members

  1. trait Opts extends AnyRef

Abstract Value Members

  1. 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.

  2. abstract def edenPool: Pool
  3. abstract def forceGc(): Unit
  4. abstract def metaspaceUsage: Option[MetaspaceUsage]

    Gets the current usage of the metaspace, if available.

  5. abstract val opts: Opts

    Current VM-specific options.

  6. abstract def safepoint: Safepoint

    Gets the time spent at safepoints (totalTimeMillis), the time getting to safepoints (syncTimeMillis), and safepoints reached (count).

  7. abstract def snap: Snapshot

    Snapshot of JVM state.

  8. abstract def snapCounters: Map[String, String]

    Get a snapshot of all performance counters.

  9. 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

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native()
  6. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  7. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  8. def executor: ScheduledExecutorService
  9. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable])
  10. def foreachGc(f: (Gc) => Unit): Unit

    Invoke f for every Gc event in the system.

    Invoke f for every Gc event in the system. This samples snap in order to synthesize a unique stream of Gc events. It's important that f is 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.

  11. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  12. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  13. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  14. def logger: Logger
    Attributes
    protected
  15. 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.

  16. def monitorGcs(bufferFor: Duration): (Time) => Seq[Gc]

    Monitors Gcs using foreachGc, and returns a function to query its timeline (up to buffer in the past).

    Monitors Gcs using foreachGc, and returns a function to query its timeline (up to buffer in 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.

  17. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  18. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  19. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  20. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  21. def toString(): String
    Definition Classes
    AnyRef → Any
  22. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  23. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  24. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()

Inherited from AnyRef

Inherited from Any

Ungrouped