Package one.profiler

Class AsyncProfilerLoader

java.lang.Object
one.profiler.AsyncProfilerLoader

public final class AsyncProfilerLoader extends Object
Allows to work with the async-profiler libraries and tools stored in the resources folder.

Upon extraction the libraries and tools are stored in an application, version and user specific application folder. The resulting files are therefore cached between executions of the JVM. This folder can be manually specified by either setting the property ap_loader_extraction_dir or by using the setExtractionDirectory(Path)} method.

Running this class as an agent main class, makes it an agent that behaves the same as the libasyncProfiler.so agent. Running the main method exposed the profiler.sh, jattach and converter features.