xhprof_enable

PECL xhprof >= 0.9.0
xhprof_enable - Start xhprof profiler
Manual
Code Examples

xhprof_enable( [int$flags = 0], [array$options] ): void

Start xhprof profiling.

Parameters

flags

Optional flags to add additional information to the profiling. See the XHprof constants for further information about these flags, e.g., XHPROF_FLAGS_MEMORY to enable memory profiling.

options

An array of optional options, namely, the 'ignored_functions' option to pass in functions to be ignored during profiling.

Return Values

null

Changelog

Version Description
PECL xhprof 0.9.2 The optional options parameter was added.

Related Functions

Example of xhprof_enable

Show all examples for xhprof_enable

PHP Version:


Function xhprof_enable:

Hierarchical Profiler Functions

Most used PHP functions