From a54f34f34c3ddef3f6e13f62f3ab673f681cac95 Mon Sep 17 00:00:00 2001 From: Kevin Lin Date: Thu, 20 May 2021 22:20:01 -0700 Subject: 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. --- logger.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'logger.h') 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[]; }; -- cgit v1.2.1