Gets the applicationTime (total time running application code since the process started) in nanoseconds or 0, if the metric is unavailable.
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.
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.
Gets the current usage of the metaspace, if available.
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.
Current VM-specific options.
Gets the time spent at safepoints (totalTimeMillis), the time getting to safepoints (syncTimeMillis), and safepoints reached (count).
Snapshot of JVM state.
Get a snapshot of all performance counters.
Gets the current tenuringThreshold (times an object must survive GC in order to be promoted) or 0, if the metric is unavailable.