Package org.openjdk.jmh.profile
Class AsyncProfiler.JavaApi
- java.lang.Object
-
- org.openjdk.jmh.profile.AsyncProfiler.JavaApi
-
- Enclosing class:
- AsyncProfiler
public static final class AsyncProfiler.JavaApi extends Object
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Stringexecute(String command)voidfilterThread(Thread thread, boolean enable)Enable or disable profile collection for threads.static AsyncProfiler.JavaApigetInstance()static AsyncProfiler.JavaApigetInstance(String libraryFileName)
-
-
-
Method Detail
-
getInstance
public static AsyncProfiler.JavaApi getInstance(String libraryFileName)
-
getInstance
public static AsyncProfiler.JavaApi getInstance()
-
execute
public String execute(String command) throws IOException
- Throws:
IOException
-
filterThread
public void filterThread(Thread thread, boolean enable)
Enable or disable profile collection for threads.- Parameters:
thread- The thread to enable or disable.nullindicates the current thread.enable- Whether to enable or disable.
-
-