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

Constructors

== Synopses

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

Create a test allocator that records stack traces for allocations&period;


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

[.small]#xref:BloombergLP/balst/StackTraceTestAllocator/2constructor-08.adoc[_» more&period;&period;&period;_]#

Create a `StackTraceTestAllocator` that records the specified `numRecordedFrames` of stack trace per allocation&period;


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

[.small]#xref:BloombergLP/balst/StackTraceTestAllocator/2constructor-03.adoc[_» more&period;&period;&period;_]#

== Parameters

[cols="1,4"]
|===
| Name| Description
| *basicAllocator*
| memory allocator&semi; null uses `MallocFreeAllocator`
| *numRecordedFrames*
| number of stack&hyphen;trace frames saved per allocation
|===


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