Created
April 9, 2015 02:04
-
-
Save tekante/4b267ed00ea9cff9a165 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if (TRUE && function_exists('xhprof_sample_enable')) { | |
xhprof_sample_enable(); | |
register_shutdown_function(function () { | |
$filename = '/var/www/vhosts/anninc-atrium/htdocs/sites/default/files/xhprof_samples/' . uniqid() . '.' . strtr($_GET['q'], array('/' => '--')) . '.sample_xhprof'; | |
file_put_contents($filename, serialize(xhprof_sample_disable())); | |
//chmod($filename, 0777); | |
}); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment