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>ignoredThreadStatesprivate static AsyncProfiler.JavaApiINSTANCE
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Stringexecute(java.lang.String command)private java.lang.Stringexecute0(java.lang.String command)voidfilterThread(java.lang.Thread thread, boolean enable)Enable or disable profile collection for threads.private voidfilterThread0(java.lang.Thread thread, boolean enable)static AsyncProfiler.JavaApigetInstance()static AsyncProfiler.JavaApigetInstance(java.lang.String libraryFileName)private longgetSamples()private voidstart0(java.lang.String event, long interval, boolean reset)private voidstop0()
-
-
-
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.nullindicates 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.IllegalArgumentExceptionjava.io.IOException
-
getSamples
private long getSamples()
-
filterThread0
private void filterThread0(java.lang.Thread thread, boolean enable)
-
-