PHP 8.3.4 Released!

LuaSandbox::enableProfiler

(PECL luasandbox >= 1.1.0)

LuaSandbox::enableProfilerEnable the profiler.

Description

public 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.

Liste de paramètres

period

Sampling period in seconds.

Valeurs de retour

Returns a boolean indicating whether the profiler is enabled.

Voir aussi

add a note

User Contributed Notes

There are no user contributed notes for this page.
To Top