Created
July 2, 2014 13:39
-
-
Save shmaltorhbooks/1e5e32243c0039400b48 to your computer and use it in GitHub Desktop.
XHProf header/footer
This file contains hidden or 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')) { | |
| include_once "xhprof_lib/utils/xhprof_lib.php"; | |
| include_once "xhprof_lib/utils/xhprof_runs.php"; | |
| xhprof_enable(XHPROF_FLAGS_CPU + XHPROF_FLAGS_MEMORY); | |
| $__xhIsAjax = (isset($_SERVER['HTTP_X_REQUESTED_WITH']) && ('xmlhttprequest' == strtolower($_SERVER['HTTP_X_REQUESTED_WITH']))); | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment