Skip to content

Commit

Permalink
keys: add memory_usage()
Browse files Browse the repository at this point in the history
Signed-off-by: Paweł Dziepak <pdziepak@scylladb.com>
  • Loading branch information
pdziepak committed Nov 18, 2016
1 parent 6b8bf03 commit 711bd19
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions keys.hh
Original file line number Diff line number Diff line change
Expand Up @@ -326,6 +326,10 @@ public:
size_t external_memory_usage() const {
return _bytes.external_memory_usage();
}

size_t memory_usage() const {
return sizeof(*this) + external_memory_usage();
}
};

template <typename TopLevel, typename PrefixTopLevel>
Expand Down

0 comments on commit 711bd19

Please sign in to comment.