]> git.proxmox.com Git - ceph.git/blob - ceph/src/rocksdb/java/src/main/java/org/rocksdb/TickerType.java
add subtree-ish sources for 12.0.3
[ceph.git] / ceph / src / rocksdb / java / src / main / java / org / rocksdb / TickerType.java
1 // Copyright (c) 2011-present, Facebook, Inc. All rights reserved.
2 // This source code is licensed under the BSD-style license found in the
3 // LICENSE file in the root directory of this source tree. An additional grant
4 // of patent rights can be found in the PATENTS file in the same directory.
5
6 package org.rocksdb;
7
8 public enum TickerType {
9 // total block cache misses
10 // REQUIRES: BLOCK_CACHE_MISS == BLOCK_CACHE_INDEX_MISS +
11 // BLOCK_CACHE_FILTER_MISS +
12 // BLOCK_CACHE_DATA_MISS;
13 BLOCK_CACHE_MISS(0),
14 // total block cache hit
15 // REQUIRES: BLOCK_CACHE_HIT == BLOCK_CACHE_INDEX_HIT +
16 // BLOCK_CACHE_FILTER_HIT +
17 // BLOCK_CACHE_DATA_HIT;
18 BLOCK_CACHE_HIT(1),
19 // # of blocks added to block cache.
20 BLOCK_CACHE_ADD(2),
21 // # of times cache miss when accessing index block from block cache.
22 BLOCK_CACHE_INDEX_MISS(3),
23 // # of times cache hit when accessing index block from block cache.
24 BLOCK_CACHE_INDEX_HIT(4),
25 // # of times cache miss when accessing filter block from block cache.
26 BLOCK_CACHE_FILTER_MISS(5),
27 // # of times cache hit when accessing filter block from block cache.
28 BLOCK_CACHE_FILTER_HIT(6),
29 // # of times cache miss when accessing data block from block cache.
30 BLOCK_CACHE_DATA_MISS(7),
31 // # of times cache hit when accessing data block from block cache.
32 BLOCK_CACHE_DATA_HIT(8),
33 // # of times bloom filter has avoided file reads.
34 BLOOM_FILTER_USEFUL(9),
35
36 // # of memtable hits.
37 MEMTABLE_HIT(10),
38 // # of memtable misses.
39 MEMTABLE_MISS(11),
40
41 // # of Get() queries served by L0
42 GET_HIT_L0(12),
43 // # of Get() queries served by L1
44 GET_HIT_L1(13),
45 // # of Get() queries served by L2 and up
46 GET_HIT_L2_AND_UP(14),
47
48 /**
49 * COMPACTION_KEY_DROP_* count the reasons for key drop during compaction
50 * There are 3 reasons currently.
51 */
52 COMPACTION_KEY_DROP_NEWER_ENTRY(15), // key was written with a newer value.
53 COMPACTION_KEY_DROP_OBSOLETE(16), // The key is obsolete.
54 COMPACTION_KEY_DROP_USER(17), // user compaction function has dropped the key.
55
56 // Number of keys written to the database via the Put and Write call's
57 NUMBER_KEYS_WRITTEN(18),
58 // Number of Keys read,
59 NUMBER_KEYS_READ(19),
60 // Number keys updated, if inplace update is enabled
61 NUMBER_KEYS_UPDATED(20),
62 // Bytes written / read
63 BYTES_WRITTEN(21),
64 BYTES_READ(22),
65 NO_FILE_CLOSES(23),
66 NO_FILE_OPENS(24),
67 NO_FILE_ERRORS(25),
68 // Time system had to wait to do LO-L1 compactions
69 STALL_L0_SLOWDOWN_MICROS(26),
70 // Time system had to wait to move memtable to L1.
71 STALL_MEMTABLE_COMPACTION_MICROS(27),
72 // write throttle because of too many files in L0
73 STALL_L0_NUM_FILES_MICROS(28),
74 // Writer has to wait for compaction or flush to finish.
75 STALL_MICROS(29),
76 // The wait time for db mutex.
77 DB_MUTEX_WAIT_MICROS(30),
78 RATE_LIMIT_DELAY_MILLIS(31),
79 NO_ITERATORS(32), // number of iterators currently open
80
81 // Number of MultiGet calls, keys read, and bytes read
82 NUMBER_MULTIGET_CALLS(33),
83 NUMBER_MULTIGET_KEYS_READ(34),
84 NUMBER_MULTIGET_BYTES_READ(35),
85
86 // Number of deletes records that were not required to be
87 // written to storage because key does not exist
88 NUMBER_FILTERED_DELETES(36),
89 NUMBER_MERGE_FAILURES(37),
90
91 // number of times bloom was checked before creating iterator on a
92 // file, and the number of times the check was useful in avoiding
93 // iterator creation (and thus likely IOPs).
94 BLOOM_FILTER_PREFIX_CHECKED(39),
95 BLOOM_FILTER_PREFIX_USEFUL(40),
96
97 // Number of times we had to reseek inside an iteration to skip
98 // over large number of keys with same userkey.
99 NUMBER_OF_RESEEKS_IN_ITERATION(41),
100
101 // Record the number of calls to GetUpadtesSince. Useful to keep track of
102 // transaction log iterator refreshes
103 GET_UPDATES_SINCE_CALLS(42),
104 BLOCK_CACHE_COMPRESSED_MISS(43), // miss in the compressed block cache
105 BLOCK_CACHE_COMPRESSED_HIT(44), // hit in the compressed block cache
106 WAL_FILE_SYNCED(45), // Number of times WAL sync is done
107 WAL_FILE_BYTES(46), // Number of bytes written to WAL
108
109 // Writes can be processed by requesting thread or by the thread at the
110 // head of the writers queue.
111 WRITE_DONE_BY_SELF(47),
112 WRITE_DONE_BY_OTHER(48),
113 WRITE_TIMEDOUT(49), // Number of writes ending up with timed-out.
114 WRITE_WITH_WAL(50), // Number of Write calls that request WAL
115 COMPACT_READ_BYTES(51), // Bytes read during compaction
116 COMPACT_WRITE_BYTES(52), // Bytes written during compaction
117 FLUSH_WRITE_BYTES(53), // Bytes written during flush
118
119 // Number of table's properties loaded directly from file, without creating
120 // table reader object.
121 NUMBER_DIRECT_LOAD_TABLE_PROPERTIES(54),
122 NUMBER_SUPERVERSION_ACQUIRES(55),
123 NUMBER_SUPERVERSION_RELEASES(56),
124 NUMBER_SUPERVERSION_CLEANUPS(57),
125 NUMBER_BLOCK_NOT_COMPRESSED(58);
126
127 private final int value_;
128
129 private TickerType(int value) {
130 value_ = value;
131 }
132
133 public int getValue() {
134 return value_;
135 }
136 }