Package org.openjdk.jmh.profile
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 String
void
filterThread
(Thread thread, boolean enable) Enable or disable profile collection for threads.private void
filterThread0
(Thread thread, boolean enable) static AsyncProfiler.JavaApi
static AsyncProfiler.JavaApi
getInstance
(String libraryFileName) private long
private void
private void
stop0()
-
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.null
indicates the current thread.enable
- Whether to enable or disable.
-
start0
- Throws:
IllegalStateException
-
stop0
- Throws:
IllegalStateException
-
execute0
- Throws:
IllegalArgumentException
IOException
-
getSamples
private long getSamples() -
filterThread0
-