MCPcopy Create free account
hub / github.com/facebook/CacheLib / getTotalSize

Method getTotalSize

cachelib/interface/tests/InterfaceTest.cpp:57–60  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

55 }
56 uint32_t getMemorySize() const noexcept override { return memory_.size(); }
57 uint32_t getTotalSize() const noexcept override {
58 // Note: this doesn't try to account for SSO
59 return sizeof(*this) + key_.size() + memory_.size();
60 }
61
62 private:
63 uint32_t creationTime_;

Callers 1

checkItemFieldsMethod · 0.45

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected