[#BloombergLP-balst-StackTraceTestAllocator-2constructor-03]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/balst.adoc[balst]::xref:BloombergLP/balst/StackTraceTestAllocator.adoc[StackTraceTestAllocator]::StackTraceTestAllocator
:relfileprefix: ../../../
:mrdocs:

Create a `StackTraceTestAllocator` that records the specified `numRecordedFrames` of stack trace per allocation&period; Optionally specify `basicAllocator`, the allocator from which memory will be provided&period; If `basicAllocator` is 0, the `MallocFreeAllocator` singleton is used&period; The behavior is undefined if `numRecordedFrames &lt; 2`&period;

== Synopsis

Declared in `&lt;balst&lowbar;stacktracetestallocator&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
explicit
StackTraceTestAllocator(
    int numRecordedFrames,
    xref:BloombergLP/bslma/Allocator.adoc[bslma::Allocator]* basicAllocator = 0);
----


[.small]#Created with https://www.mrdocs.com[MrDocs]#
