public class CallsiteRecorder extends Object implements SnapshotConsumer, AutoCloseable
Modifier and Type | Field and Description |
---|---|
static Instrumentation |
inst |
Modifier and Type | Method and Description |
---|---|
void |
accept(ContextSnapshot snapshot) |
void |
close() |
static CallsiteRecorder |
create(AgentConfiguration config,
Class<?>[] classes) |
static CallsiteRecorder |
create(Method... methods) |
static CallsiteRecorder |
create(SerializationProfile profile,
Method... methods) |
<T> T |
record(Callable<T> callable) |
CompletableFuture<List<ContextSnapshot>> |
record(Runnable runnable) |
CompletableFuture<List<ContextSnapshot>> |
snapshots() |
public static Instrumentation inst
public static CallsiteRecorder create(Method... methods)
public static CallsiteRecorder create(SerializationProfile profile, Method... methods)
public static CallsiteRecorder create(AgentConfiguration config, Class<?>[] classes)
public CompletableFuture<List<ContextSnapshot>> record(Runnable runnable)
public CompletableFuture<List<ContextSnapshot>> snapshots()
public void accept(ContextSnapshot snapshot)
accept
in interface SnapshotConsumer
public void close() throws Exception
close
in interface AutoCloseable
Exception
Copyright © 2020. All rights reserved.