Enum GcAnalyzer.GcType

    • Enum Constant Detail

      • PS_SCAVENGE

        public static final GcAnalyzer.GcType PS_SCAVENGE
        The young generation parallel scavenge collector.
      • PS_MARK_SWEEP

        public static final GcAnalyzer.GcType PS_MARK_SWEEP
        The old generation parallel scavenge collector.
      • COPY

        public static final GcAnalyzer.GcType COPY
        The good old serial copy collector (enabled via -XX:+UseSerialGC).
      • MARK_SWEEP_COMPACT

        public static final GcAnalyzer.GcType MARK_SWEEP_COMPACT
        The good old serial mark and sweep compactor (enabled via -XX:+UseSerialGC).
      • G1_YOUNG

        public static final GcAnalyzer.GcType G1_YOUNG
        Young generation collection of the g1 collector.
      • G1_OLD

        public static final GcAnalyzer.GcType G1_OLD
        Old generation collection of the g1 collector.
      • CONCURRENT_MARK_SWEEP

        public static final GcAnalyzer.GcType CONCURRENT_MARK_SWEEP
        The concurrent mark sweep collector.
      • UNKNOWN

        public static final GcAnalyzer.GcType UNKNOWN
        We couldn't figure out the gc type, sorry!
    • Method Detail

      • values

        public static GcAnalyzer.GcType[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (GcAnalyzer.GcType c : GcAnalyzer.GcType.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static GcAnalyzer.GcType valueOf​(String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
        Parameters:
        name - the name of the enum constant to be returned.
        Returns:
        the enum constant with the specified name
        Throws:
        IllegalArgumentException - if this enum type has no constant with the specified name
        NullPointerException - if the argument is null
      • identifier

        public String identifier()
      • fromString

        public static GcAnalyzer.GcType fromString​(String name)
        Helper method to get the GcAnalyzer.GcType for the string representation.
        Parameters:
        name - the name of the gc type from the JVM.
        Returns:
        the type if found or UNKNOWN otherwise.