PHP 8.3.4 Released!

xhprof_sample_disable

(PECL xhprof >= 0.9.0)

xhprof_sample_disableStops xhprof sample profiler

Beschreibung

xhprof_sample_disable(): array

Stops the sample mode xhprof profiler, and

Parameter-Liste

Diese Funktion besitzt keine Parameter.

Rückgabewerte

An array of xhprof sample data, from the run.

Beispiele

Beispiel #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);
?>

Das oben gezeigte Beispiel erzeugt eine ähnliche Ausgabe wie:

Array
(
    [1272935300.800000] => main()
    [1272935300.900000] => main()
)
add a note

User Contributed Notes

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