Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $isAjax = isset($_SERVER["HTTP_X_REQUESTED_WITH"]) && $_SERVER["HTTP_X_REQUESTED_WITH"] == 'XMLHttpRequest';
- $isForms = false !== strpos($_SERVER['HTTP_HOST'], 'net-forms.imena.ua');
- if (extension_loaded('xhprof') && !$isAjax && !$isForms) {
- include_once '/usr/share/pear/xhprof_lib/utils/xhprof_lib.php';
- include_once '/usr/share/pear/xhprof_lib/utils/xhprof_runs.php';
- xhprof_enable(XHPROF_FLAGS_CPU + XHPROF_FLAGS_MEMORY);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement