{**
* For the full copyright and license information, please view the
* docs/licenses/LICENSE.txt file that was distributed with this source code.
*}
{function name=peak_memory}
{$data = round($data / 1048576, 2)}
{if $data > 16}
{$data|string_format:"%0.1f"}
{elseif $data > 12}
{$data|string_format:"%0.1f"}
{else}
{$data|string_format:"%0.1f"}
{/if}
Mb
{/function}