« LuaSandbox::disableProfiler
LuaSandbox::getCPUUsage »

LuaSandbox::enableProfiler

(PECL luasandbox >= 1.1.0)

LuaSandbox::enableProfiler — Enable the profiler.

説明

public function LuaSandbox::enableProfiler(float $period = 0.02): bool

Enables the profiler. Profiling will begin when Lua code is entered.

The profiler periodically samples the Lua environment to record the running function. Testing indicates that at least on Linux, setting a period less than 1ms will lead to a high overrun count but no performance problems.

パラメータ

period

Sampling period in seconds.

戻り値

Returns a boolean indicating whether the profiler is enabled.

参考

関連キーワード:
profiler   LuaSandbox   period   Enable   enableProfiler   disableProfiler   getCPUUsage   luasandbox   float   Profiling   code   periodically   environment   record   running   Testing   lead   overrun   performance   problems   Sampling   seconds   boolean   whether   enabled
関連する関数・ページ:
luasandbox.disableprofiler   luasandbox.getprofilerfunctionreport   luasandbox.setup   class.luasandbox   book.luasandbox   luasandbox.getversioninfo

他のマニュアルの関連ページ