MCPcopy Create free account
hub / github.com/Snapchat/Valdi / dumpStats

Method dumpStats

valdi_core/src/valdi_core/cpp/Utils/ReferenceTable.cpp:85–95  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

83}
84
85ReferenceTableStats ReferenceTable::dumpStats() const {
86 size_t tableSize;
87 std::vector<ReferenceTableEntry> entries;
88 {
89 auto read = readAccess();
90 tableSize = read.getTableSize();
91 entries = read.getAll();
92 }
93
94 return ReferenceTableStats::fromEntries(tableSize, entries);
95}
96
97bool ReferenceTable::contains(SequenceID id) const {
98 auto index = toEntryIndex(id);

Callers

nothing calls this directly

Calls 2

getTableSizeMethod · 0.80
getAllMethod · 0.45

Tested by

no test coverage detected