Table of Contents

Enum PerfMetric

Namespace
RocksDbNet
Assembly
RocksDb.Net.dll

A counter available from a PerfContext, mapped from the metric enumeration in RocksDb's c.h.

public enum PerfMetric

Fields

BlobCacheHitCount = 69

Maps to rocksdb_blob_cache_hit_count.

BlobChecksumTime = 73

Maps to rocksdb_blob_checksum_time.

BlobDecompressTime = 74

Maps to rocksdb_blob_decompress_time.

BlobReadByte = 71

Maps to rocksdb_blob_read_byte.

BlobReadCount = 70

Maps to rocksdb_blob_read_count.

BlobReadTime = 72

Maps to rocksdb_blob_read_time.

BlockCacheHitCount = 1

Maps to rocksdb_block_cache_hit_count.

BlockChecksumTime = 5

Maps to rocksdb_block_checksum_time.

BlockDecompressTime = 6

Maps to rocksdb_block_decompress_time.

BlockReadByte = 3

Maps to rocksdb_block_read_byte.

BlockReadCount = 2

Maps to rocksdb_block_read_count.

BlockReadCpuTime = 76

Maps to rocksdb_block_read_cpu_time.

BlockReadTime = 4

Maps to rocksdb_block_read_time.

BlockSeekNanos = 40

Maps to rocksdb_block_seek_nanos.

BloomMemtableHitCount = 42

Maps to rocksdb_bloom_memtable_hit_count.

BloomMemtableMissCount = 43

Maps to rocksdb_bloom_memtable_miss_count.

BloomSstHitCount = 44

Maps to rocksdb_bloom_sst_hit_count.

BloomSstMissCount = 45

Maps to rocksdb_bloom_sst_miss_count.

CompressionDictBlockReadByte = 81

Maps to rocksdb_compression_dict_block_read_byte.

DataBlockReadByte = 78

Maps to rocksdb_data_block_read_byte.

DbConditionWaitNanos = 34

Maps to rocksdb_db_condition_wait_nanos.

DbMutexLockNanos = 33

Maps to rocksdb_db_mutex_lock_nanos.

EnvCreateDirIfMissingNanos = 59

Maps to rocksdb_env_create_dir_if_missing_nanos.

EnvCreateDirNanos = 58

Maps to rocksdb_env_create_dir_nanos.

EnvDeleteDirNanos = 60

Maps to rocksdb_env_delete_dir_nanos.

EnvDeleteFileNanos = 57

Maps to rocksdb_env_delete_file_nanos.

EnvFileExistsNanos = 54

Maps to rocksdb_env_file_exists_nanos.

EnvGetChildrenFileAttributesNanos = 56

Maps to rocksdb_env_get_children_file_attributes_nanos.

EnvGetChildrenNanos = 55

Maps to rocksdb_env_get_children_nanos.

EnvGetFileModificationTimeNanos = 62

Maps to rocksdb_env_get_file_modification_time_nanos.

EnvGetFileSizeNanos = 61

Maps to rocksdb_env_get_file_size_nanos.

EnvLinkFileNanos = 64

Maps to rocksdb_env_link_file_nanos.

EnvLockFileNanos = 65

Maps to rocksdb_env_lock_file_nanos.

EnvNewDirectoryNanos = 53

Maps to rocksdb_env_new_directory_nanos.

EnvNewLoggerNanos = 67

Maps to rocksdb_env_new_logger_nanos.

EnvNewRandomAccessFileNanos = 49

Maps to rocksdb_env_new_random_access_file_nanos.

EnvNewRandomRwFileNanos = 52

Maps to rocksdb_env_new_random_rw_file_nanos.

EnvNewSequentialFileNanos = 48

Maps to rocksdb_env_new_sequential_file_nanos.

EnvNewWritableFileNanos = 50

Maps to rocksdb_env_new_writable_file_nanos.

EnvRenameFileNanos = 63

Maps to rocksdb_env_rename_file_nanos.

EnvReuseWritableFileNanos = 51

Maps to rocksdb_env_reuse_writable_file_nanos.

EnvUnlockFileNanos = 66

Maps to rocksdb_env_unlock_file_nanos.

FilterBlockReadByte = 80

Maps to rocksdb_filter_block_read_byte.

FindNextUserEntryTime = 28

Maps to rocksdb_find_next_user_entry_time.

FindTableNanos = 41

Maps to rocksdb_find_table_nanos.

GetFromMemtableCount = 16

Maps to rocksdb_get_from_memtable_count.

GetFromMemtableTime = 15

Maps to rocksdb_get_from_memtable_time.

GetFromOutputFilesTime = 18

Maps to rocksdb_get_from_output_files_time.

GetPostProcessTime = 17

Maps to rocksdb_get_post_process_time.

GetReadBytes = 7

Maps to rocksdb_get_read_bytes.

GetSnapshotTime = 14

Maps to rocksdb_get_snapshot_time.

IndexBlockReadByte = 79

Maps to rocksdb_index_block_read_byte.

InternalDeleteSkippedCount = 11

Maps to rocksdb_internal_delete_skipped_count.

InternalKeySkippedCount = 10

Maps to rocksdb_internal_key_skipped_count.

InternalMergeCount = 13

Maps to rocksdb_internal_merge_count.

InternalMergePointLookupCount = 77

Maps to rocksdb_internal_merge_point_lookup_count.

InternalRangeDelReseekCount = 75

Maps to rocksdb_internal_range_del_reseek_count.

InternalRecentSkippedCount = 12

Maps to rocksdb_internal_recent_skipped_count.

IterReadBytes = 9

Maps to rocksdb_iter_read_bytes.

KeyLockWaitCount = 47

Maps to rocksdb_key_lock_wait_count.

KeyLockWaitTime = 46

Maps to rocksdb_key_lock_wait_time.

MergeOperatorTimeNanos = 35

Maps to rocksdb_merge_operator_time_nanos.

MetadataBlockReadByte = 82

Maps to rocksdb_metadata_block_read_byte.

MultiGetReadBytes = 8

Maps to rocksdb_multiget_read_bytes.

NewTableBlockIterNanos = 38

Maps to rocksdb_new_table_block_iter_nanos.

NewTableIteratorNanos = 39

Maps to rocksdb_new_table_iterator_nanos.

NextOnMemtableCount = 21

Maps to rocksdb_next_on_memtable_count.

NumberAsyncSeek = 68

Maps to rocksdb_number_async_seek.

PrevOnMemtableCount = 22

Maps to rocksdb_prev_on_memtable_count.

ReadFilterBlockNanos = 37

Maps to rocksdb_read_filter_block_nanos.

ReadIndexBlockNanos = 36

Maps to rocksdb_read_index_block_nanos.

SeekChildSeekCount = 24

Maps to rocksdb_seek_child_seek_count.

SeekChildSeekTime = 23

Maps to rocksdb_seek_child_seek_time.

SeekInternalSeekTime = 27

Maps to rocksdb_seek_internal_seek_time.

SeekMaxHeapTime = 26

Maps to rocksdb_seek_max_heap_time.

SeekMinHeapTime = 25

Maps to rocksdb_seek_min_heap_time.

SeekOnMemtableCount = 20

Maps to rocksdb_seek_on_memtable_count.

SeekOnMemtableTime = 19

Maps to rocksdb_seek_on_memtable_time.

UserKeyComparisonCount = 0

Maps to rocksdb_user_key_comparison_count.

WriteDelayTime = 31

Maps to rocksdb_write_delay_time.

WriteMemtableTime = 30

Maps to rocksdb_write_memtable_time.

WritePreAndPostProcessTime = 32

Maps to rocksdb_write_pre_and_post_process_time.

WriteWalTime = 29

Maps to rocksdb_write_wal_time.

Remarks

The values are positional in the native header, so they must match it exactly. Which counters are populated depends on the PerfLevel in force: counts are collected by default, while anything time-related needs a higher level.