Package org.openjdk.jmh.profile
Class GCProfiler.VMSupport
java.lang.Object
org.openjdk.jmh.profile.GCProfiler.VMSupport
- Enclosing class:
GCProfiler
This class encapsulates any platform-specific functionality. It is supposed to gracefully
fail if some functionality is not available. This class resolves most special classes via
Reflection to enable building against a standard JDK.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final boolean
private static ThreadMXBean
private static Method
private static final boolean
private static NotificationListener
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic void
private static long[]
getAllocatedBytes
(long[] threadIds) getChurn()
private static NotificationListener
static void
private static boolean
private static boolean
-
Field Details
-
ALLOC_AVAILABLE
private static final boolean ALLOC_AVAILABLE -
ALLOC_MX_BEAN
-
ALLOC_MX_BEAN_GETTER
-
CHURN_AVAILABLE
private static final boolean CHURN_AVAILABLE -
listener
-
churn
-
-
Constructor Details
-
VMSupport
VMSupport()
-
-
Method Details
-
tryInitAlloc
private static boolean tryInitAlloc() -
tryInitChurn
private static boolean tryInitChurn() -
getAllocatedBytes
private static long[] getAllocatedBytes(long[] threadIds) -
newListener
-
getSnapshot
-
startChurnProfile
public static void startChurnProfile() -
finishChurnProfile
public static void finishChurnProfile() -
getChurn
-