array ( 0 => 'index.php', 1 => 'PHP Manual', ), 'head' => array ( 0 => 'UTF-8', 1 => 'zh', ), 'this' => array ( 0 => 'luasandbox.getpeakmemoryusage.php', 1 => 'LuaSandbox::getPeakMemoryUsage', 2 => 'Fetch the peak memory usage of the Lua environment', ), 'up' => array ( 0 => 'class.luasandbox.php', 1 => 'LuaSandbox', ), 'prev' => array ( 0 => 'luasandbox.getmemoryusage.php', 1 => 'LuaSandbox::getMemoryUsage', ), 'next' => array ( 0 => 'luasandbox.getprofilerfunctionreport.php', 1 => 'LuaSandbox::getProfilerFunctionReport', ), 'alternatives' => array ( ), 'source' => array ( 'lang' => 'en', 'path' => 'reference/luasandbox/luasandbox/getpeakmemoryusage.xml', ), 'history' => array ( ), ); $setup["toc"] = $TOC; $setup["toc_deprecated"] = $TOC_DEPRECATED; $setup["parents"] = $PARENTS; manual_setup($setup); contributors($setup); ?>

LuaSandbox::getPeakMemoryUsage

(PECL luasandbox >= 1.0.0)

LuaSandbox::getPeakMemoryUsageFetch the peak memory usage of the Lua environment

说明

public LuaSandbox::getPeakMemoryUsage(): int

Fetches the peak memory usage of the Lua environment.

参数

此函数没有参数。

返回值

Returns the peak memory usage in bytes.

参见