71 if (group == MAIN_GROUP) {
99 HT_FATALF(
"Invalid group number (%d)", group);
104 if (group == MAIN_GROUP) {
132 HT_FATALF(
"Invalid group number (%d)", group);
136 if (group == MAIN_GROUP) {
164 HT_FATALF(
"Invalid group number (%d)", group);
Abstract base class for managing serialized statistics.
char * decode_vstr(const uint8_t **bufp, size_t *remainp)
Decode a vstr (vint64, data, null).
virtual void encode_group(int group, uint8_t **bufp) const
Abstruct function to serialize a group into a memory buffer.
int encoded_length_double()
Length of an encoded double (16 bytes)
uint64_t block_index_memory
uint64_t memory_allocated
virtual void decode_group(int group, uint16_t len, const uint8_t **bufp, size_t *remainp)
Abstruct function to deserialize a group from a memory buffer.
uint64_t bloom_filter_memory
size_t encoded_length_vstr(size_t len)
Computes the encoded length of vstr (vint64, data, null)
int encoded_length_vi32(uint32_t val)
Length of a variable length encoded 32-bit integer (up to 5 bytes)
void encode_vi64(uint8_t **bufp, uint64_t val)
Encode a integer (up to 64-bit) in variable length encoding.
Logging routines and macros.
Compatibility Macros for C/C++.
Functions to serialize/deserialize primitives to/from a memory buffer.
uint64_t shadow_cache_memory
void encode_vstr(uint8_t **bufp, const void *buf, size_t len)
Encode a buffer as variable length string (vint64, data, null)
#define HT_FATALF(msg,...)
uint64_t decode_vi64(const uint8_t **bufp, size_t *remainp)
Decode a variable length encoded integer up to 64-bit.
void encode_vi32(uint8_t **bufp, uint32_t val)
Encode a integer (up to 32-bit) in variable length encoding.
double decode_double(const uint8_t **bufp, size_t *remainp)
Decodes a double as 64-bit left-of-decimal, followed by 64-bit right-of-decimal, both in little-endia...
bool equal(double a, double b)
Compare doubles that may have been serialized and unserialized.
bool operator==(const StatsTable &other) const
uint8_t group_ids[32]
The actual group IDs.
uint64_t bloom_filter_maybes
uint64_t bloom_filter_accesses
virtual size_t encoded_length_group(int group) const
Abstruct function returning the serialized length of a group.
uint32_t decode_vi32(const uint8_t **bufp, size_t *remainp)
Decode a variable length encoded integer up to 32-bit.
void encode_double(uint8_t **bufp, double val)
Encodes a double with 18 decimal digits of precision as 64-bit left-of-decimal, followed by 64-bit ri...
int encoded_length_vi64(uint64_t val)
Length of a variable length encoded 64-bit integer (up to 9 bytes)