Class GCProfiler.VMSupport

java.lang.Object
org.openjdk.jmh.profile.GCProfiler.VMSupport
Enclosing class:
GCProfiler

static class GCProfiler.VMSupport extends Object
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 Details

    • ALLOC_AVAILABLE

      private static final boolean ALLOC_AVAILABLE
    • ALLOC_MX_BEAN

      private static ThreadMXBean ALLOC_MX_BEAN
    • ALLOC_MX_BEAN_GETTER

      private static Method ALLOC_MX_BEAN_GETTER
    • CHURN_AVAILABLE

      private static final boolean CHURN_AVAILABLE
    • listener

      private static NotificationListener listener
    • churn

      private static Multiset<String> 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

      private static NotificationListener newListener()
    • getSnapshot

      public static GCProfiler.HotspotAllocationSnapshot getSnapshot()
    • startChurnProfile

      public static void startChurnProfile()
    • finishChurnProfile

      public static void finishChurnProfile()
    • getChurn

      public static Multiset<String> getChurn()