php8.5
Home/ Manual/ xhprof / functions/ xhprof_sample_enable

xhprof_sample_enable

PHP function Edit on GitHub ✎

(PECL xhprof >= 0.9.0)

Start XHProf profiling in sampling mode

Description

xhprof_sample_enable(): void

Starts profiling in sample mode, which is a lighter weight version of xhprof_enable(). The sampling interval is 0.1 seconds, and samples record the full function call stack. The main use case is when lower overhead is required when doing performance monitoring and diagnostics.

Parameters Parameters

Return Values

null

See Also

Source: reference/xhprof/functions/xhprof-sample-enable.xml · from the official PHP manual (php/doc-en)