LuaSandbox::enableProfiler
(PECL luasandbox >= 1.1.0)
LuaSandbox::enableProfiler — Enable the profiler.
说明
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.
参见
- LuaSandbox::disableProfiler() - Disable the profiler
- LuaSandbox::getProfilerFunctionReport() - Fetch profiler data
+添加备注
用户贡献的备注
此页面尚无用户贡献的备注。
备份地址:http://www.lvesu.com/blog/php/luasandbox.enableprofiler.php