Class AsyncProfiler.JavaApi
java.lang.Object
org.openjdk.jmh.profile.AsyncProfiler.JavaApi
- Enclosing class:
AsyncProfiler
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static EnumSet<Thread.State> private static AsyncProfiler.JavaApi -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate StringvoidfilterThread(Thread thread, boolean enable) Enable or disable profile collection for threads.private voidfilterThread0(Thread thread, boolean enable) static AsyncProfiler.JavaApistatic AsyncProfiler.JavaApigetInstance(String libraryFileName) private longprivate voidprivate voidstop0()
-
Field Details
-
ignoredThreadStates
-
INSTANCE
-
-
Constructor Details
-
JavaApi
-
JavaApi
private JavaApi()
-
-
Method Details
-
getInstance
-
getInstance
-
execute
- Throws:
IOException
-
filterThread
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
- Throws:
IllegalStateException
-
stop0
- Throws:
IllegalStateException
-
execute0
- Throws:
IllegalArgumentExceptionIOException
-
getSamples
private long getSamples() -
filterThread0
-