Skip to content

Commit

Permalink
Extra Debug Performance Markers added for e_module includes.
Browse files Browse the repository at this point in the history
  • Loading branch information
CaMer0n committed Jan 26, 2018
1 parent 573ea97 commit 318a849
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
2 changes: 2 additions & 0 deletions class2.php
Original file line number Diff line number Diff line change
Expand Up @@ -482,6 +482,7 @@ function genericAutoload($className)
e107::getConfig()->load(); // extra load, required if mysql handler already called e107::getConfig()
if(!e107::getConfig()->hasData())
{

// Core prefs error - admin log
e107::getAdminLog()->log_event('CORE_LAN8', 'CORE_LAN7', E_LOG_WARNING);

Expand Down Expand Up @@ -823,6 +824,7 @@ function getip()
{
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");
}
}
Expand Down
7 changes: 5 additions & 2 deletions e107_handlers/db_debug_class.php
Original file line number Diff line number Diff line change
Expand Up @@ -100,10 +100,13 @@ function Mark_Time($sMarker) { // Should move to traffic_class?
if (!strlen($sMarker)) {
$sMarker = "Mark not set";
}


$srch = array('[',']');
$repl = array("<small>","</small>");

$this->aTimeMarks[$nMarks]=array(
'Index' => ($this->nTimeMarks),
'What' => $sMarker,
'What' => str_replace($srch,$repl,$sMarker),
'%Time' => 0,
'%DB Time' => 0,
'%DB Count' => 0,
Expand Down

0 comments on commit 318a849

Please sign in to comment.