// Copyright (c) 2011-present, Facebook, Inc.  All rights reserved.
// This source code is licensed under the BSD-style license found in the
// LICENSE file in the root directory of this source tree. An additional grant
// of patent rights can be found in the PATENTS file in the same directory.

package org.rocksdb;

public enum HistogramType {
  DB_GET(0),
  DB_WRITE(1),
  COMPACTION_TIME(2),
  TABLE_SYNC_MICROS(3),
  COMPACTION_OUTFILE_SYNC_MICROS(4),
  WAL_FILE_SYNC_MICROS(5),
  MANIFEST_FILE_SYNC_MICROS(6),
  // TIME SPENT IN IO DURING TABLE OPEN
  TABLE_OPEN_IO_MICROS(7),
  DB_MULTIGET(8),
  READ_BLOCK_COMPACTION_MICROS(9),
  READ_BLOCK_GET_MICROS(10),
  WRITE_RAW_BLOCK_MICROS(11),
  STALL_L0_SLOWDOWN_COUNT(12),
  STALL_MEMTABLE_COMPACTION_COUNT(13),
  STALL_L0_NUM_FILES_COUNT(14),
  HARD_RATE_LIMIT_DELAY_COUNT(15),
  SOFT_RATE_LIMIT_DELAY_COUNT(16),
  NUM_FILES_IN_SINGLE_COMPACTION(17),
  DB_SEEK(18),
  WRITE_STALL(19);

  private final int value_;

  private HistogramType(int value) {
    value_ = value;
  }

  public int getValue() {
    return value_;
  }
}

@@ -390,16 +390,47 @@
 IME(2),%0A
+  SUBCOMPACTION_SETUP_TIME(3),%0A
   TABLE_
@@ -441,17 +441,17 @@
 _MICROS(
-3
+4
 ),%0A  COM
@@ -474,25 +474,25 @@
 SYNC_MICROS(
-4
+5
 ),%0A  WAL_FIL
@@ -501,25 +501,25 @@
 SYNC_MICROS(
-5
+6
 ),%0A  MANIFES
@@ -533,25 +533,25 @@
 SYNC_MICROS(
-6
+7
 ),%0A  // TIME
@@ -600,25 +600,25 @@
 N_IO_MICROS(
-7
+8
 ),%0A  DB_MULT
@@ -622,17 +622,17 @@
 ULTIGET(
-8
+9
 ),%0A  REA
@@ -657,17 +657,18 @@
 _MICROS(
-9
+10
 ),%0A  REA
@@ -683,25 +683,25 @@
 GET_MICROS(1
-0
+1
 ),%0A  WRITE_R
@@ -713,25 +713,25 @@
 OCK_MICROS(1
-1
+2
 ),%0A  STALL_L
@@ -748,17 +748,17 @@
 _COUNT(1
-2
+3
 ),%0A  STA
@@ -779,33 +779,33 @@
 MPACTION_COUNT(1
-3
+4
 ),%0A  STALL_L0_NU
@@ -815,25 +815,25 @@
 ILES_COUNT(1
-4
+5
 ),%0A  HARD_RA
@@ -850,25 +850,25 @@
 ELAY_COUNT(1
-5
+6
 ),%0A  SOFT_RA
@@ -885,25 +885,25 @@
 ELAY_COUNT(1
-6
+7
 ),%0A  NUM_FIL
@@ -927,17 +927,17 @@
 ACTION(1
-7
+8
 ),%0A  DB_
@@ -942,17 +942,17 @@
 B_SEEK(1
-8
+9
 ),%0A  WRI
@@ -960,18 +960,293 @@
 E_STALL(
-19
+20),%0A  SST_READ_MICROS(21),%0A  NUM_SUBCOMPACTIONS_SCHEDULED(22),%0A  BYTES_PER_READ(23),%0A  BYTES_PER_WRITE(24),%0A  BYTES_PER_MULTIGET(25),%0A  BYTES_COMPRESSED(26),%0A  BYTES_DECOMPRESSED(27),%0A  COMPRESSION_TIMES_NANOS(28),%0A  DECOMPRESSION_TIMES_NANOS(29),%0A  READ_NUM_MERGE_OPERANDS(30
 );%0A%0A  pr

Update HistogramTypes in the Java API