Package org.rocksdb

Enum Class PerfLevel

java.lang.Object
java.lang.Enum<PerfLevel>
org.rocksdb.PerfLevel
All Implemented Interfaces:
Serializable, Comparable<PerfLevel>, Constable

public enum PerfLevel extends Enum<PerfLevel>
  • Enum Constant Details

    • UNINITIALIZED

      public static final PerfLevel UNINITIALIZED
      Unknown setting
    • DISABLE

      public static final PerfLevel DISABLE
      disable perf stats
    • ENABLE_COUNT

      public static final PerfLevel ENABLE_COUNT
      enable only count stats
    • ENABLE_TIME_EXCEPT_FOR_MUTEX

      public static final PerfLevel ENABLE_TIME_EXCEPT_FOR_MUTEX
      Other than count stats, also enable time stats except for mutexes
    • ENABLE_TIME_AND_CPU_TIME_EXCEPT_FOR_MUTEX

      public static final PerfLevel ENABLE_TIME_AND_CPU_TIME_EXCEPT_FOR_MUTEX
      Other than time, also measure CPU time counters. Still don't measure time (neither wall time nor CPU time) for mutexes
    • ENABLE_TIME

      public static final PerfLevel ENABLE_TIME
      enable count and time stats
    • OUT_OF_BOUNDS

      @Deprecated public static final PerfLevel OUT_OF_BOUNDS
      Deprecated.
      It's here to just keep parity with C++ API.
      Do not use
  • Method Details

    • values

      public static PerfLevel[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static PerfLevel valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified name
      NullPointerException - if the argument is null
    • getValue

      public byte getValue()
    • getPerfLevel

      public static PerfLevel getPerfLevel(byte level)