Enum InstrumentType

    • Enum Constant Detail

      • RUNTIME_MICRO

        public static final InstrumentType RUNTIME_MICRO
        Runtime microbenchmark instrument.
      • RUNTIME_MACRO

        public static final InstrumentType RUNTIME_MACRO
        Runtime macrobenchmark instrument.
      • RUNTIME_PICO

        public static final InstrumentType RUNTIME_PICO
        Runtime picobenchmark instrument.
      • ALLOCATION_MICRO

        public static final InstrumentType ALLOCATION_MICRO
        Allocation microbenchmark instrument.
      • ALLOCATION_MACRO

        public static final InstrumentType ALLOCATION_MACRO
        Allocation macrobenchmark instrument.
      • ARBITRARY_MEASUREMENT

        public static final InstrumentType ARBITRARY_MEASUREMENT
        Arbitrary measurement instrument.
    • Method Detail

      • values

        public static InstrumentType[] 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 (InstrumentType c : InstrumentType.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static InstrumentType 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