public final class GcLogger extends Object
| Constructor and Description |
|---|
GcLogger()
Create a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
List<GcEvent> |
getLogs()
Return the current set of GC events in the in-memory log.
|
void |
start(GcEventListener listener)
Start collecting data about GC events.
|
void |
stop()
Stop collecting GC events.
|
public void start(GcEventListener listener)
listener - If not null, the listener will be called with the event objects after metrics and the
log buffer is updated.public void stop()