mirror of
https://github.com/moodle/moodle.git
synced 2025-02-21 18:08:02 +01:00
AMOS BEGIN MOV [calls,report_profiling],[calls,tool_profiling] MOV [cannotfindanyrunforurl,report_profiling],[cannotfindanyrunforurl,tool_profiling] MOV [cannotfindanyrunforrunid,report_profiling],[cannotfindanyrunforrunid,tool_profiling] MOV [comment,report_profiling],[comment,tool_profiling] MOV [differencesbetween2runsof,report_profiling],[differencesbetween2runsof,tool_profiling] MOV [executiontime,report_profiling],[executiontime,tool_profiling] MOV [cputime,report_profiling],[cputime,tool_profiling] MOV [lastrunof,report_profiling],[lastrunof,tool_profiling] MOV [markreferencerun,report_profiling],[markreferencerun,tool_profiling] MOV [memory,report_profiling],[memory,tool_profiling] MOV [pluginname,report_profiling],[pluginname,tool_profiling] MOV [profilingfocusscript,report_profiling],[profilingfocusscript,tool_profiling] MOV [profilingruns,report_profiling],[profilingruns,tool_profiling] MOV [profilingrunsfor,report_profiling],[profilingrunsfor,tool_profiling] MOV [referencerun,report_profiling],[referencerun,tool_profiling] MOV [runid,report_profiling],[runid,tool_profiling] MOV [summaryof,report_profiling],[summaryof,tool_profiling] MOV [viewdetails,report_profiling],[viewdetails,tool_profiling] MOV [viewdiff,report_profiling],[viewdiff,tool_profiling] MOV [viewdiffdetails,report_profiling],[viewdiffdetails,tool_profiling] AMOS END
32 lines
1.3 KiB
PHP
32 lines
1.3 KiB
PHP
<?php
|
|
// This file is part of Moodle - http://moodle.org/
|
|
//
|
|
// Moodle is free software: you can redistribute it and/or modify
|
|
// it under the terms of the GNU General Public License as published by
|
|
// the Free Software Foundation, either version 3 of the License, or
|
|
// (at your option) any later version.
|
|
//
|
|
// Moodle is distributed in the hope that it will be useful,
|
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
// GNU General Public License for more details.
|
|
//
|
|
// You should have received a copy of the GNU General Public License
|
|
// along with Moodle. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
/**
|
|
* Profiling tool settings.
|
|
*
|
|
* @package tool
|
|
* @subpackage profiling
|
|
* @copyright 2010 onwards Eloy Lafuente (stronk7) {@link http://stronk7.com}
|
|
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
|
*/
|
|
|
|
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'));
|
|
}
|