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 String
execute(String command)
void
filterThread(Thread thread, boolean enable)
Enable or disable profile collection for threads.static AsyncProfiler.JavaApi
getInstance()
static AsyncProfiler.JavaApi
getInstance(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.null
indicates the current thread.enable
- Whether to enable or disable.
-
-