|
LuaSandbox::getProfilerFunctionReportFetch profiler data Description
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:
Parameters
Return ValuesReturns 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.
Examples
Example #1 Profiling Lua code
|