<?php include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc'; $TOC = array(); $TOC_DEPRECATED = array(); $PARENTS = array(); include_once dirname(__FILE__) ."/toc/class.luasandbox.inc"; $setup = array ( 'home' => 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); ?> <div id="luasandbox.getpeakmemoryusage" class="refentry"> <div class="refnamediv"> <h1 class="refname">LuaSandbox::getPeakMemoryUsage</h1> <p class="verinfo">(PECL luasandbox >= 1.0.0)</p><p class="refpurpose"><span class="refname">LuaSandbox::getPeakMemoryUsage</span> — <span class="dc-title">Fetch the peak memory usage of the Lua environment</span></p> </div> <div class="refsect1 description" id="refsect1-luasandbox.getpeakmemoryusage-description"> <h3 class="title">说明</h3> <div class="methodsynopsis dc-description"> <span class="modifier">public</span> <span class="methodname"><strong>LuaSandbox::getPeakMemoryUsage</strong></span>(): <span class="type"><a href="language.types.integer.php" class="type int">int</a></span></div> <p class="para rdfs-comment"> Fetches the peak memory usage of the Lua environment. </p> </div> <div class="refsect1 parameters" id="refsect1-luasandbox.getpeakmemoryusage-parameters"> <h3 class="title">参数</h3> <p class="para">此函数没有参数。</p> </div> <div class="refsect1 returnvalues" id="refsect1-luasandbox.getpeakmemoryusage-returnvalues"> <h3 class="title">返回值</h3> <p class="para"> Returns the peak memory usage in bytes. </p> </div> <div class="refsect1 seealso" id="refsect1-luasandbox.getpeakmemoryusage-seealso"> <h3 class="title">参见</h3> <p class="para"> <ul class="simplelist"> <li><span class="methodname"><a href="luasandbox.getmemoryusage.php" class="methodname" rel="rdfs-seeAlso">LuaSandbox::getMemoryUsage()</a> - Fetch the current memory usage of the Lua environment</span></li> <li><span class="methodname"><a href="luasandbox.getcpuusage.php" class="methodname" rel="rdfs-seeAlso">LuaSandbox::getCPUUsage()</a> - Fetch the current CPU time usage of the Lua environment</span></li> <li><span class="methodname"><a href="luasandbox.setmemorylimit.php" class="methodname" rel="rdfs-seeAlso">LuaSandbox::setMemoryLimit()</a> - Set the memory limit for the Lua environment</span></li> </ul> </p> </div> </div><?php manual_footer($setup); ?>