You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
773 B
21 lines
773 B
<?php
|
|
/* For license terms, see /license.txt */
|
|
/**
|
|
* @package chamilo.profiling
|
|
*/
|
|
/**
|
|
* Init. Xhprof has been replaced by The Tideways profiler as Xhprof is not
|
|
* maintained for PHP anymore (Facebook moved to HHVM).
|
|
* See https://tideways.io/profiler/
|
|
* To use, you should load header.php and footer.php through an append_file
|
|
* in your php config also disable the .htaccess line about the tests/
|
|
* directory.
|
|
*/
|
|
|
|
$isAjaxRequest = isset($_SERVER['HTTP_X_REQUESTED_WITH']) && $_SERVER['HTTP_X_REQUESTED_WITH'] === 'XMLHttpRequest';
|
|
|
|
if (extension_loaded('tideways') && !$isAjaxRequest) {
|
|
//include_once __DIR__.'/xhprof_lib/utils/xhprof_lib.php';
|
|
//include_once __DIR__.'/xhprof_lib/utils/xhprof_runs.php';
|
|
tideways_enable(TIDEWAYS_FLAGS_NO_SPANS);
|
|
}
|
|
|