Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

xhprof_sample_disable() get empty #29

Closed
dvaknheo opened this issue Sep 15, 2019 · 2 comments
Closed

xhprof_sample_disable() get empty #29

dvaknheo opened this issue Sep 15, 2019 · 2 comments

Comments

@dvaknheo
Copy link

my platform is win10 wsl1 debian.

run this sample sample code got array(); is it the init xphrof problem or this version's problem ?

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

thanks to this so great job.

@dvaknheo
Copy link
Author

it look like xhprof_sample_disable() is alias as xhprof_disable()
and xhprof_sample_enable() do nothing.

@longxinH
Copy link
Owner

xhprof_sample_disable is collected at intervals, the default is 100,000 microseconds, you can adjust the shorter collection time by setting xhprof.sampling_interval.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants