Commit | Line | Data |
---|---|---|
6af80cae EL |
1 | <?php |
2 | ||
3 | defined('MOODLE_INTERNAL') || die; | |
4 | ||
5 | // profiling report, added to development | |
c646dd26 | 6 | if (extension_loaded('xhprof') && function_exists('xhprof_enable') && (!empty($CFG->profilingenabled) || !empty($CFG->earlyprofilingenabled))) { |
6af80cae EL |
7 | $ADMIN->add('development', new admin_externalpage('reportprofiling', get_string('pluginname', 'report_profiling'), "$CFG->wwwroot/$CFG->admin/report/profiling/index.php", 'moodle/site:config')); |
8 | } |