php8.5
Home/ Manual/ luasandbox / luasandbox/ LuaSandbox::getPeakMemoryUsage

LuaSandbox::getPeakMemoryUsage

PHP function Edit on GitHub ✎

(PECL luasandbox >= 1.0.0)

Fetch the peak memory usage of the Lua environment

Description

LuaSandbox::getPeakMemoryUsage(): int

Fetches the peak memory usage of the Lua environment.

Parameters Parameters

Return Values

Returns the peak memory usage in bytes.

See Also

  • LuaSandbox::getMemoryUsage
  • LuaSandbox::getCPUUsage
  • LuaSandbox::setMemoryLimit

Source: reference/luasandbox/luasandbox/getpeakmemoryusage.xml · from the official PHP manual (php/doc-en)