Browse Source

Fixes

pull/3/head
MadD3n 4 years ago
parent
commit
6869f14190
  1. 2
      class/class.debug.php
  2. 6
      index.php

2
class/class.debug.php

@ -1024,7 +1024,7 @@
$out .= '<br>'; $out .= '<br>';
$out .= 'Memory peak usage: ' . self::getStatistic('peak'); $out .= 'Memory peak usage: ' . self::getStatistic('peak');
$out .= '<br>'; $out .= '<br>';
$out .= 'SQL Queries: ' . $AVE_DB->DBProfilesGet('count') . ' for ' . $AVE_DB->DBProfilesGet('time') . ' sec'; $out .= 'Real SQL Queries: ' . $AVE_DB->DBProfilesGet('count') . ' for ' . $AVE_DB->DBProfilesGet('time') . ' sec';
$out .= '<br>'; $out .= '<br>';
$out .= 'All SQL Queries: ' . count($AVE_DB->_query_list); $out .= 'All SQL Queries: ' . count($AVE_DB->_query_list);
$out .= '</div>'; $out .= '</div>';

6
index.php

@ -11,7 +11,7 @@
* @license GPL v.2 * @license GPL v.2
*/ */
define ('START_MICROTIME', microtime(true)); define ('START_MICROTIME', microtime());
define ('START_MEMORY', memory_get_usage()); define ('START_MEMORY', memory_get_usage());
define ('BASE_DIR', str_replace("\\", "/", dirname(__FILE__))); define ('BASE_DIR', str_replace("\\", "/", dirname(__FILE__)));
@ -174,4 +174,6 @@
$GLOBALS['block_generate']['DOCUMENT']['CONTENT'] = Debug::endTime('CONTENT'); $GLOBALS['block_generate']['DOCUMENT']['CONTENT'] = Debug::endTime('CONTENT');
//-- Вывод конечного результата //-- Вывод конечного результата
output_compress($render); output_compress($render);
$AVE_DB->Close();
Loading…
Cancel
Save