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 java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description private static java.util.EnumSet<java.lang.Thread.State>
ignoredThreadStates
private static AsyncProfiler.JavaApi
INSTANCE
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
execute(java.lang.String command)
private java.lang.String
execute0(java.lang.String command)
void
filterThread(java.lang.Thread thread, boolean enable)
Enable or disable profile collection for threads.private void
filterThread0(java.lang.Thread thread, boolean enable)
static AsyncProfiler.JavaApi
getInstance()
static AsyncProfiler.JavaApi
getInstance(java.lang.String libraryFileName)
private long
getSamples()
private void
start0(java.lang.String event, long interval, boolean reset)
private void
stop0()
-
-
-
Field Detail
-
ignoredThreadStates
private static java.util.EnumSet<java.lang.Thread.State> ignoredThreadStates
-
INSTANCE
private static AsyncProfiler.JavaApi INSTANCE
-
-
Method Detail
-
getInstance
public static AsyncProfiler.JavaApi getInstance(java.lang.String libraryFileName)
-
getInstance
public static AsyncProfiler.JavaApi getInstance()
-
execute
public java.lang.String execute(java.lang.String command) throws java.io.IOException
- Throws:
java.io.IOException
-
filterThread
public void filterThread(java.lang.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.
-
start0
private void start0(java.lang.String event, long interval, boolean reset) throws java.lang.IllegalStateException
- Throws:
java.lang.IllegalStateException
-
stop0
private void stop0() throws java.lang.IllegalStateException
- Throws:
java.lang.IllegalStateException
-
execute0
private java.lang.String execute0(java.lang.String command) throws java.lang.IllegalArgumentException, java.io.IOException
- Throws:
java.lang.IllegalArgumentException
java.io.IOException
-
getSamples
private long getSamples()
-
filterThread0
private void filterThread0(java.lang.Thread thread, boolean enable)
-
-