Constructors

Synopses

Declared in <balst_stacktracetestallocator.h>

Create a test allocator that records stack traces for allocations.

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

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

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

Parameters

Name

Description

basicAllocator

memory allocator; null uses MallocFreeAllocator

numRecordedFrames

number of stack‐trace frames saved per allocation

Created with MrDocs