GoLang xhprof_sample_disable

request it (364)
GoLang replacement for PHP's xhprof_sample_disable [edit | history]



Do you know a GoLang replacement for PHP's xhprof_sample_disable? Write it!

PHP xhprof_sample_disable

PHP original manual for xhprof_sample_disable [ show | php.net ]

xhprof_sample_disable

(PECL xhprof >= 0.9.0)

xhprof_sample_disableStops xhprof sample profiler

Description

array xhprof_sample_disable ( void )

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() 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()
)