This commit is contained in:
MadD3n 2020-08-26 09:11:20 +03:00
parent 0ee7891d41
commit 6869f14190
2 changed files with 5 additions and 3 deletions

View File

@ -1024,7 +1024,7 @@
$out .= '<br>';
$out .= 'Memory peak usage: ' . self::getStatistic('peak');
$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 .= 'All SQL Queries: ' . count($AVE_DB->_query_list);
$out .= '</div>';

View File

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