BloombergLP::balst::StackTraceTestAllocator::StackTraceTestAllocator

Constructors

Synopses

Declared in <balst_stacktracetestallocator.h>

Create a test allocator that records stack traces for allocations.

explicit
StackTraceTestAllocator(bslma::Allocator* basicAllocator = 0);
» more...

Create a StackTraceTestAllocator that records the specified numRecordedFrames of stack trace per allocation.

explicit
StackTraceTestAllocator(
    int numRecordedFrames,
    bslma::Allocator* basicAllocator = 0);
» more...

Parameters

NameDescription
basicAllocatormemory allocator; null uses MallocFreeAllocator
numRecordedFramesnumber of stack-trace frames saved per allocation