[core] Remove last remaining parts of profiling code which was removed in 2006.
This commit is contained in:
@@ -111,6 +111,7 @@ $Id$
|
|||||||
- rfe #806035, #686260 [relations] Export relations to Dia, SVG and others
|
- rfe #806035, #686260 [relations] Export relations to Dia, SVG and others
|
||||||
+ [interface] Added charts to status tab, profiling page and query results
|
+ [interface] Added charts to status tab, profiling page and query results
|
||||||
+ [interface] AJAXification on various pages
|
+ [interface] AJAXification on various pages
|
||||||
|
- [core] Remove last remaining parts of profiling code which was removed in 2006.
|
||||||
|
|
||||||
3.3.7.0 (not yet released)
|
3.3.7.0 (not yet released)
|
||||||
- patch #3050492 [PDF scratchboard] Cannot drag table box to the edge after
|
- patch #3050492 [PDF scratchboard] Cannot drag table box to the edge after
|
||||||
|
@@ -2274,30 +2274,6 @@ setfacl -d -m "g:www-data:rwx" tmp
|
|||||||
Enable logging queries and execution times to be displayed in the bottom
|
Enable logging queries and execution times to be displayed in the bottom
|
||||||
of main page (right frame).</dd>
|
of main page (right frame).</dd>
|
||||||
|
|
||||||
<dt id="cfg_DBG_enable_php">$cfg['DBG']['php'] boolean</dt>
|
|
||||||
<dd><b>DEVELOPERS ONLY!</b><br />
|
|
||||||
Enable the DBG extension for debugging phpMyAdmin. Required for profiling
|
|
||||||
the code.<br />
|
|
||||||
For help in setting up your system to this, see the
|
|
||||||
<a href="#developersdbg">Developers</a> section.</dd>
|
|
||||||
|
|
||||||
<dt id="cfg_DBG_profile_enable">$cfg['DBG']['profile']['enable'] boolean</dt>
|
|
||||||
<dd><b>DEVELOPERS ONLY!</b><br />
|
|
||||||
Enable profiling support for phpMyAdmin. This will append a chunk of data
|
|
||||||
to the end of every page displayed in the main window with profiling
|
|
||||||
statistics for that page.<br />
|
|
||||||
You may need to increase the maximum execution time for this to
|
|
||||||
complete successfully.<i>Profiling was removed from the code for
|
|
||||||
version 2.9.0 due to licensing issues.</i></dd>
|
|
||||||
|
|
||||||
<dt id="cfg_DBG_profile_threshold">$cfg['DBG']['profile']['threshold'] float (units in milliseconds)</dt>
|
|
||||||
<dd><b>DEVELOPERS ONLY!</b><br />
|
|
||||||
When profiling data is displayed, this variable controls the threshold of
|
|
||||||
display for any profiling data, based on the average time each time has
|
|
||||||
taken. If it is over the threshold it is displayed, otherwise it is not
|
|
||||||
displayed. This takes a value in milliseconds. In most cases you don't need
|
|
||||||
to edit this.</dd>
|
|
||||||
|
|
||||||
<dt id="cfg_ColumnTypes">$cfg['ColumnTypes'] array</dt>
|
<dt id="cfg_ColumnTypes">$cfg['ColumnTypes'] array</dt>
|
||||||
<dd>All possible types of a MySQL column. In most cases you don't need to
|
<dd>All possible types of a MySQL column. In most cases you don't need to
|
||||||
edit this.</dd>
|
edit this.</dd>
|
||||||
|
@@ -2653,29 +2653,6 @@ $cfg['DBG'] = array();
|
|||||||
*/
|
*/
|
||||||
$cfg['DBG']['sql'] = false;
|
$cfg['DBG']['sql'] = false;
|
||||||
|
|
||||||
/**
|
|
||||||
* Make the DBG stuff available
|
|
||||||
* To use the following, please install the DBG extension from http://dd.cron.ru/dbg/
|
|
||||||
*
|
|
||||||
* @global boolean $cfg['DBG']['php']
|
|
||||||
*/
|
|
||||||
$cfg['DBG']['php'] = false;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Produce profiling results of PHP
|
|
||||||
*
|
|
||||||
* @global boolean $cfg['DBG']['profile']['enable']
|
|
||||||
*/
|
|
||||||
$cfg['DBG']['profile']['enable'] = false;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Threshold of long running code to display
|
|
||||||
* Anything below the threshold is not displayed
|
|
||||||
*
|
|
||||||
* @global float $cfg['DBG']['profile']['threshold']
|
|
||||||
*/
|
|
||||||
$cfg['DBG']['profile']['threshold'] = 0.5;
|
|
||||||
|
|
||||||
|
|
||||||
/*******************************************************************************
|
/*******************************************************************************
|
||||||
* MySQL settings
|
* MySQL settings
|
||||||
|
@@ -40,7 +40,6 @@ $strConfigConfigurationFile = __('Configuration file');
|
|||||||
$strConfigConfirm_desc = __('Whether a warning ("Are your really sure...") should be displayed when you\'re about to lose data');
|
$strConfigConfirm_desc = __('Whether a warning ("Are your really sure...") should be displayed when you\'re about to lose data');
|
||||||
$strConfigConfirm_name = __('Confirm DROP queries');
|
$strConfigConfirm_name = __('Confirm DROP queries');
|
||||||
$strConfigCtrlArrowsMoving_name = __('Field navigation using Ctrl+Arrows');
|
$strConfigCtrlArrowsMoving_name = __('Field navigation using Ctrl+Arrows');
|
||||||
$strConfigDBG_php_name = __('Debug PHP');
|
|
||||||
$strConfigDBG_sql_name = __('Debug SQL');
|
$strConfigDBG_sql_name = __('Debug SQL');
|
||||||
$strConfigDefaultDisplay_name = __('Default display direction');
|
$strConfigDefaultDisplay_name = __('Default display direction');
|
||||||
$strConfigDefaultPropDisplay_desc = __('[kbd]horizontal[/kbd], [kbd]vertical[/kbd] or a number that indicates maximum number for which vertical model is used');
|
$strConfigDefaultPropDisplay_desc = __('[kbd]horizontal[/kbd], [kbd]vertical[/kbd] or a number that indicates maximum number for which vertical model is used');
|
||||||
|
@@ -118,8 +118,7 @@ $forms['Features']['Developer'] = array(
|
|||||||
'UserprefsDeveloperTab',
|
'UserprefsDeveloperTab',
|
||||||
'Error_Handler/display',
|
'Error_Handler/display',
|
||||||
'Error_Handler/gather',
|
'Error_Handler/gather',
|
||||||
'DBG/sql',
|
'DBG/sql');
|
||||||
'DBG/php');
|
|
||||||
$forms['Features']['Other_core_settings'] = array(
|
$forms['Features']['Other_core_settings'] = array(
|
||||||
'NaturalOrder',
|
'NaturalOrder',
|
||||||
'InitialSlidersState',
|
'InitialSlidersState',
|
||||||
|
@@ -51,8 +51,7 @@ $forms['Features']['Warnings'] = array(
|
|||||||
$forms['Features']['Developer'] = array(
|
$forms['Features']['Developer'] = array(
|
||||||
'Error_Handler/display',
|
'Error_Handler/display',
|
||||||
'Error_Handler/gather',
|
'Error_Handler/gather',
|
||||||
'DBG/sql',
|
'DBG/sql');
|
||||||
'DBG/php');
|
|
||||||
$forms['Sql_queries']['Sql_queries'] = array(
|
$forms['Sql_queries']['Sql_queries'] = array(
|
||||||
'ShowSQL',
|
'ShowSQL',
|
||||||
'Confirm',
|
'Confirm',
|
||||||
|
@@ -1,31 +0,0 @@
|
|||||||
<?php
|
|
||||||
/* vim: set expandtab sw=4 ts=4 sts=4: */
|
|
||||||
/**
|
|
||||||
* @package phpMyAdmin-DBG
|
|
||||||
*/
|
|
||||||
if (! defined('PHPMYADMIN')) {
|
|
||||||
exit;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* checks for DBG extension
|
|
||||||
*
|
|
||||||
* allways use $GLOBALS here, as this script is included by footer.inc.hp
|
|
||||||
* which can also be included from inside a function
|
|
||||||
*/
|
|
||||||
if ($GLOBALS['cfg']['DBG']['php']) {
|
|
||||||
/**
|
|
||||||
* Loads the DBG extension if needed
|
|
||||||
*/
|
|
||||||
if (! @extension_loaded('dbg') ) {
|
|
||||||
$message = PMA_Message::error(__('The %s extension is missing. Please check your PHP configuration.'),
|
|
||||||
$message->addParam(sprintf('[a@http://php.net/%1$s@Documentation][em]%1$s[/em][/a]', 'dbg'));
|
|
||||||
$message->addMessage('<a href="./Documentation.html#faqdbg" target="documentation">', false);
|
|
||||||
$message->addString(__('Documentation'));
|
|
||||||
$message->addMessage('</a>', false);
|
|
||||||
$message->display();
|
|
||||||
} else {
|
|
||||||
$GLOBALS['DBG'] = true;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
?>
|
|
@@ -29,8 +29,6 @@
|
|||||||
* @uses $GLOBALS['userlink'] to close it
|
* @uses $GLOBALS['userlink'] to close it
|
||||||
* @uses $cfg['Server']['user']
|
* @uses $cfg['Server']['user']
|
||||||
* @uses $cfg['NavigationBarIconic']
|
* @uses $cfg['NavigationBarIconic']
|
||||||
* @uses $cfg['DBG']['enable']
|
|
||||||
* @uses $cfg['DBG']['profile']['enable']
|
|
||||||
* @uses $cfg['MaxCharactersInDisplayedSQL']
|
* @uses $cfg['MaxCharactersInDisplayedSQL']
|
||||||
* @uses PMA_isValid()
|
* @uses PMA_isValid()
|
||||||
* @uses PMA_setHistory()
|
* @uses PMA_setHistory()
|
||||||
@@ -202,25 +200,6 @@ if (! $GLOBALS['is_ajax_request'] && file_exists(CUSTOM_FOOTER_FILE)) {
|
|||||||
require CUSTOM_FOOTER_FILE;
|
require CUSTOM_FOOTER_FILE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Generates profiling data if requested
|
|
||||||
*/
|
|
||||||
|
|
||||||
// profiling deactivated due to licensing issues
|
|
||||||
if (! empty($GLOBALS['cfg']['DBG']['php'])
|
|
||||||
&& ! empty($GLOBALS['cfg']['DBG']['profile']['enable'])) {
|
|
||||||
//run the basic setup code first
|
|
||||||
require_once './libraries/dbg/setup.php';
|
|
||||||
//if the setup ran fine, then do the profiling
|
|
||||||
/*
|
|
||||||
if (! empty($GLOBALS['DBG'])) {
|
|
||||||
require_once './libraries/dbg/profiling.php';
|
|
||||||
dbg_dump_profiling_results();
|
|
||||||
}
|
|
||||||
*/
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* If we are in an AJAX request, we do not need to generate the closing tags for
|
* If we are in an AJAX request, we do not need to generate the closing tags for
|
||||||
* body and html.
|
* body and html.
|
||||||
|
@@ -48,21 +48,6 @@ if (!empty($_GET['saved'])) {
|
|||||||
$message->display();
|
$message->display();
|
||||||
}
|
}
|
||||||
|
|
||||||
// debug info
|
|
||||||
if ($cfg['DBG']['php']) {
|
|
||||||
$arr = ConfigFile::getInstance()->getConfigArray();
|
|
||||||
$arr2 = array();
|
|
||||||
foreach ($arr as $k => $v) {
|
|
||||||
$arr2[] = "<b>$k</b> " . var_export($v, true);
|
|
||||||
}
|
|
||||||
$arr2 = implode(', ', $arr2);
|
|
||||||
$arr2 .= '<br />Blacklist: ' . (empty($cfg['UserprefsDisallow'])
|
|
||||||
? '<i>empty</i>'
|
|
||||||
: implode(', ', $cfg['UserprefsDisallow']));
|
|
||||||
$msg = PMA_Message::notice('Settings: ' . $arr2);
|
|
||||||
$msg->display();
|
|
||||||
}
|
|
||||||
|
|
||||||
// warn about using session storage for settings
|
// warn about using session storage for settings
|
||||||
$cfgRelation = PMA_getRelationsParam();
|
$cfgRelation = PMA_getRelationsParam();
|
||||||
if (!$cfgRelation['userconfigwork']) {
|
if (!$cfgRelation['userconfigwork']) {
|
||||||
|
@@ -164,7 +164,6 @@ function PMA_apply_userprefs(array $config_data)
|
|||||||
$blacklist['Error_Handler/display'] = true;
|
$blacklist['Error_Handler/display'] = true;
|
||||||
$blacklist['Error_Handler/gather'] = true;
|
$blacklist['Error_Handler/gather'] = true;
|
||||||
$blacklist['DBG/sql'] = true;
|
$blacklist['DBG/sql'] = true;
|
||||||
$blacklist['DBG/php'] = true;
|
|
||||||
}
|
}
|
||||||
$whitelist = array_flip(PMA_read_userprefs_fieldnames());
|
$whitelist = array_flip(PMA_read_userprefs_fieldnames());
|
||||||
// whitelist some additional fields which are custom handled
|
// whitelist some additional fields which are custom handled
|
||||||
|
Reference in New Issue
Block a user