diff options
author | Kevin Lin <developer@kevinlin.info> | 2021-05-20 22:20:01 -0700 |
---|---|---|
committer | dormando <dormando@rydia.net> | 2021-08-06 11:48:33 -0700 |
commit | a54f34f34c3ddef3f6e13f62f3ab673f681cac95 (patch) | |
tree | e747e4ea935c2e2f90442426a39ea1537932e4fa /logger.h | |
parent | fba435c992eda3762a652210e6f75bba75e19e2c (diff) | |
download | memcached-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.h | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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[]; }; |