Created
August 6, 2012 06:26
-
-
Save wilr/3271377 to your computer and use it in GitHub Desktop.
XHProf
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
php_value auto_prepend_file header.php | |
php_value auto_append_file footer.php |
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
<?php | |
if (extension_loaded('xhprof')) { | |
if(isset($_REQUEST['xhprof'])) { | |
include_once '/opt/local/www/php5-xhprof/xhprof_lib/utils/xhprof_lib.php'; | |
include_once '/opt/local/www/php5-xhprof/xhprof_lib/utils/xhprof_runs.php'; | |
xhprof_enable(XHPROF_FLAGS_CPU + XHPROF_FLAGS_MEMORY); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment