1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-04 13:47:31 +02:00

Extra Debug Performance Markers added for e_module includes.

This commit is contained in:
Cameron
2018-01-25 16:10:51 -08:00
parent 573ea978b7
commit 318a849b77
2 changed files with 7 additions and 2 deletions

View File

@@ -482,6 +482,7 @@ $sysprefs = new prefs;
e107::getConfig()->load(); // extra load, required if mysql handler already called e107::getConfig() e107::getConfig()->load(); // extra load, required if mysql handler already called e107::getConfig()
if(!e107::getConfig()->hasData()) if(!e107::getConfig()->hasData())
{ {
// Core prefs error - admin log // Core prefs error - admin log
e107::getAdminLog()->log_event('CORE_LAN8', 'CORE_LAN7', E_LOG_WARNING); e107::getAdminLog()->log_event('CORE_LAN8', 'CORE_LAN7', E_LOG_WARNING);
@@ -823,6 +824,7 @@ if(isset($pref['e_module_list']) && $pref['e_module_list'])
{ {
if (is_readable(e_PLUGIN."{$mod}/e_module.php")) if (is_readable(e_PLUGIN."{$mod}/e_module.php"))
{ {
$sql->db_Mark_Time('[e_module in '.$mod.']');
require_once(e_PLUGIN."{$mod}/e_module.php"); require_once(e_PLUGIN."{$mod}/e_module.php");
} }
} }

View File

@@ -100,10 +100,13 @@ class e107_db_debug {
if (!strlen($sMarker)) { if (!strlen($sMarker)) {
$sMarker = "Mark not set"; $sMarker = "Mark not set";
} }
$srch = array('[',']');
$repl = array("<small>","</small>");
$this->aTimeMarks[$nMarks]=array( $this->aTimeMarks[$nMarks]=array(
'Index' => ($this->nTimeMarks), 'Index' => ($this->nTimeMarks),
'What' => $sMarker, 'What' => str_replace($srch,$repl,$sMarker),
'%Time' => 0, '%Time' => 0,
'%DB Time' => 0, '%DB Time' => 0,
'%DB Count' => 0, '%DB Count' => 0,