5 #ifndef CVMFS_KVSTORE_H_
6 #define CVMFS_KVSTORE_H_
42 : address(NULL),
size(0), refcount(0), object_flags(0), id() { }
87 "Number of GetSize calls");
89 "n_getrefcount",
"Number of GetRefcount calls");
91 "Number of IncRef calls");
93 "Number of Unref calls");
96 "Number of Commit calls");
98 "Number of Delete calls");
100 "Number of ShrinkTo calls");
110 MemoryAllocator alloc,
188 bool ShrinkTo(
size_t size);
204 bool CompactMemory();
216 #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