mirror of
https://github.com/XRPLF/rippled.git
synced 2025-12-06 17:27:55 +00:00
Summary: Replace include/leveldb with include/rocksdb. Test Plan: make clean; make check make clean; make release Differential Revision: https://reviews.facebook.net/D12489
25 lines
450 B
C++
25 lines
450 B
C++
#ifndef STORAGE_ROCKSDB_INCLUDE_PERF_CONTEXT_H
|
|
#define STORAGE_ROCKSDB_INCLUDE_PERF_CONTEXT_H
|
|
|
|
#include <stdint.h>
|
|
|
|
namespace leveldb {
|
|
|
|
// A thread local context for gathering performance counter efficiently
|
|
// and transparently.
|
|
|
|
struct PerfContext {
|
|
|
|
void Reset(); // reset all performance counters to zero
|
|
|
|
|
|
uint64_t user_key_comparison_count; // total number of user key comparisons
|
|
};
|
|
|
|
extern __thread PerfContext perf_context;
|
|
|
|
}
|
|
|
|
|
|
#endif
|