MCPcopy Create free account
hub / github.com/bytedance/bolt / checkSizes

Method checkSizes

bolt/exec/tests/RowContainerTest.cpp:274–283  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

272 }
273
274 void checkSizes(std::vector<char*>& rows, RowContainer& data) {
275 int64_t sum = 0;
276 for (auto row : rows) {
277 sum += data.rowSize(row) - data.fixedRowSize();
278 }
279 auto usage = data.stringAllocator().cumulativeBytes();
280 if (data.testingRowPointers().empty()) {
281 EXPECT_EQ(usage, sum);
282 }
283 }
284
285 /*
286 * We changed the way to measure memory usage in the

Callers

nothing calls this directly

Calls 5

cumulativeBytesMethod · 0.80
rowSizeMethod · 0.45
fixedRowSizeMethod · 0.45
stringAllocatorMethod · 0.45
emptyMethod · 0.45

Tested by

no test coverage detected