summaryrefslogtreecommitdiff
path: root/logger.h
diff options
context:
space:
mode:
authorKevin Lin <developer@kevinlin.info>2021-05-20 22:20:01 -0700
committerdormando <dormando@rydia.net>2021-08-06 11:48:33 -0700
commita54f34f34c3ddef3f6e13f62f3ab673f681cac95 (patch)
treee747e4ea935c2e2f90442426a39ea1537932e4fa /logger.h
parentfba435c992eda3762a652210e6f75bba75e19e2c (diff)
downloadmemcached-a54f34f34c3ddef3f6e13f62f3ab673f681cac95.tar.gz
Report item sizes for fetch, mutation, and eviction watchers
This adds a new field `size` to logger entry lines for item_get, item_store, and eviction events indicating the size of the associated item in bytes.
Diffstat (limited to 'logger.h')
-rw-r--r--logger.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/logger.h b/logger.h
index 3cc4594..715f3af 100644
--- a/logger.h
+++ b/logger.h
@@ -63,6 +63,7 @@ typedef const struct {
/* log entry intermediary structures */
struct logentry_eviction {
long long int exptime;
+ int nbytes;
uint32_t latime;
uint16_t it_flags;
uint8_t nkey;
@@ -84,6 +85,7 @@ struct logentry_item_get {
uint8_t was_found;
uint8_t nkey;
uint8_t clsid;
+ int nbytes;
int sfd;
char key[];
};
@@ -94,6 +96,7 @@ struct logentry_item_store {
rel_time_t ttl;
uint8_t nkey;
uint8_t clsid;
+ int nbytes;
int sfd;
char key[];
};