[#BloombergLP-bslma-TestAllocator-stashStatistics] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bslma.adoc[bslma]::xref:BloombergLP/bslma/TestAllocator.adoc[TestAllocator]::stashStatistics :relfileprefix: ../../../ :mrdocs: Return the current statistics that may later be passed to `restoreStatistics`, and reset the current statistic as follows: == Synopsis Declared in `<bslma_testallocator.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:BloombergLP/bslma/TestAllocatorStashedStatistics.adoc[TestAllocatorStashedStatistics] stashStatistics(); ---- == Description Statistic | Reset value to ‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐ | ‐‐‐‐‐‐‐‐‐‐‐‐‐‐ numAllocations | numBlocksInUse numDeallocations | ZERO numMismatches | ZERO numBoundsErrors | ZERO numBlocksMax | numBlocksInUse numBytesMax | numBytesInUse numBlocksTotal | numBlocksInUse numBytesTotal | numBytesInUse See also `restoreStatistics`. [.small]#Created with https://www.mrdocs.com[MrDocs]#