xhprof_sample_disable(3) php man page | unix.com

Man Page: xhprof_sample_disable

Operating Environment: php

Section: 3

XHPROF_SAMPLE_DISABLE(3)						 1						  XHPROF_SAMPLE_DISABLE(3)

xhprof_sample_disable - Stops xhprof sample profiler

SYNOPSIS
array xhprof_sample_disable (void )
DESCRIPTION
Stops the sample mode xhprof profiler, and
PARAMETERS
This function has no parameters.
RETURN VALUES
An array of xhprof sample data, from the run.
EXAMPLES
Example #1 xhprof_sample_disable(3) example <?php xhprof_sample_enable(); for ($i = 0; $i <= 10000; $i++) { $a = strlen($i); $b = $i * $a; $c = rand(); } $xhprof_data = xhprof_sample_disable(); print_r($xhprof_data); ?> The above example will output something similar to: Array ( [1272935300.800000] => main() [1272935300.900000] => main() ) PHP Documentation Group XHPROF_SAMPLE_DISABLE(3)
Related Man Pages
class_implements(3) - php
ini_get_all(3) - php
class_uses(3) - php
get_defined_functions(3) - php
print_r(3) - php
Similar Topics in the Unix Linux Community
New Code Tags (Syntax Highlighting)
Please Welcome Don Cragun as Lead Moderator
Please Welcome Ravinder Singh to the Moderation Team
The Order of the Wizard's Hat - Lifetime Achievement Award 2019 - Congrats to Wolf Machowitsch
Please Welcome Nicki Paul to the Moderator Team!