пример
Код: Выделить всё
Time : 0.096s (PHP: 51% - SQL: 49%) | 19 Queries | GZIP : On (64%) Код: Выделить всё
Time : 0.096s (PHP: 51% - SQL: 49%) | 19 Queries | GZIP : On (64%) Код: Выделить всё
if (empty($_REQUEST['explain']))
{
return false;
}Код: Выделить всё
if (empty($_REQUEST['explain']))
{
switch ($mode)
{
case 'stop':
$endtime = explode(' ', microtime());
$endtime = $endtime[0] + $endtime[1];
$this->sql_time += $endtime - $this->curtime;
break;
case 'start':
$this->curtime = explode(' ', microtime());
$this->curtime = $this->curtime[0] + $this->curtime[1];
break;
}
return false;
}Код: Выделить всё
$debug_output = sprintf('Time : %.3fs | ' . $db->sql_num_queries() . ' Queries | GZIP : ' . (($config['gzip_compress'] && @extension_loaded('zlib')) ? 'On' : 'Off') . (($user->load) ? ' | Load : ' . $user->load : ''), $totaltime);