5 #ifndef CVMFS_KVSTORE_H_
6 #define CVMFS_KVSTORE_H_
91 "Number of GetSize calls");
93 "Number of GetRefcount calls");
95 "Number of IncRef calls");
97 "Number of Unref calls");
100 "Number of Commit calls");
102 "Number of Delete calls");
104 "Number of ShrinkTo calls");
114 unsigned int cache_entries,
115 MemoryAllocator alloc,
195 bool ShrinkTo(
size_t size);
211 bool CompactMemory();
223 #endif // CVMFS_KVSTORE_H_
unsigned int max_entries_
static const double kCompactThreshold
Counters(perf::StatisticsTemplate statistics)
perf::Counter * n_getrefcount
static void Read(void *buf, size_t nbyte)
unsigned int entry_count_
perf::Counter * n_getsize
perf::Counter * sz_deleted
MemoryAllocator allocator_
Counter * RegisterTemplated(const std::string &name_minor, const std::string &desc)
perf::Counter * sz_shrunk
lru::LruCache< shash::Any, MemoryBuffer > entries_
perf::Counter * n_shrinkto
perf::Counter * sz_committed