Constructors
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...
| Name | Description |
|---|---|
| basicAllocator | memory allocator; null uses MallocFreeAllocator |
| numRecordedFrames | number of stack-trace frames saved per allocation |