MDL-55292 performance: Allow Tideways profiler extension.
PHP7 doesn't have any default XHProf support and all other investigated forks don't have stable PHP7. Tideways is under active development and is easy to install. The data format is compatible with XHProf so it is a drop-in replacement in that way.
This commit is contained in:
committed by
Andrew Nicols
parent
30257f7959
commit
cdb3a0e501
@@ -26,6 +26,7 @@
|
||||
defined('MOODLE_INTERNAL') || die;
|
||||
|
||||
// profiling tool, added to development
|
||||
if (extension_loaded('xhprof') && function_exists('xhprof_enable') && (!empty($CFG->profilingenabled) || !empty($CFG->earlyprofilingenabled))) {
|
||||
$ADMIN->add('development', new admin_externalpage('toolprofiling', get_string('pluginname', 'tool_profiling'), "$CFG->wwwroot/$CFG->admin/tool/profiling/index.php", 'moodle/site:config'));
|
||||
if ((extension_loaded('xhprof') || extension_loaded('tideways')) && (!empty($CFG->profilingenabled) || !empty($CFG->earlyprofilingenabled))) {
|
||||
$ADMIN->add('development', new admin_externalpage('toolprofiling', get_string('pluginname', 'tool_profiling'),
|
||||
"$CFG->wwwroot/$CFG->admin/tool/profiling/index.php", 'moodle/site:config'));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user