update : 2015.11.03
php.shukuma.com

검색:
 
 
Stops xhprof sample profiler

xhprof_sample_disable

(PECL xhprof >= 0.9.0)

xhprof_sample_disable — Stops xhprof sample profiler

설명

array xhprof_sample_disable ( void )

Stops the sample mode xhprof profiler, and

인수

이 함수는 인수가 없습니다.

반환값

An array of xhprof sample data, from the run.

예제

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

위 예제의 출력 예시:

Array
(
    [1272935300.800000] => main()
    [1272935300.900000] => main()
)