MCPcopy Create free account
hub / github.com/apache/impala / MemTest

Function MemTest

be/src/testutil/test-udfs.cc:452–459  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

450}
451
452IMPALA_UDF_EXPORT
453BigIntVal MemTest(FunctionContext* context, const BigIntVal& bytes) {
454 int64_t* total = reinterpret_cast<int64_t*>(
455 context->GetFunctionState(FunctionContext::THREAD_LOCAL));
456 context->TrackAllocation(bytes.val);
457 *total += bytes.val;
458 return bytes;
459}
460
461IMPALA_UDF_EXPORT
462void MemTestClose(FunctionContext* context, FunctionContext::FunctionStateScope scope) {

Callers

nothing calls this directly

Calls 2

GetFunctionStateMethod · 0.80
TrackAllocationMethod · 0.80

Tested by

no test coverage detected