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.
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.
Access JVM internal performance counters. We maintain a strict interface so that we are decoupled from the actual underlying JVM.