|
LuaSandbox::getProfilerFunctionReportFetch profiler data 説明
public array LuaSandbox::getProfilerFunctionReport(int
$units = LuaSandbox::SECONDS)For a profiling instance previously started by LuaSandbox::enableProfiler, get a report of the cost of each function. The measurement unit used for the cost is determined by the $units parameter:
パラメータ
戻り値Returns profiler measurements, sorted in descending order, as an associative array. Keys are the Lua function names (with source file and line defined in angle brackets), values are the measurements as int or float.
例
例1 Profiling Lua code
|