//query profiling
$db->query('SET profiling = 1');
$db->query("SELECT COUNT(id) `0` FROM tbl` WHERE......");
$timings = $db->getRows('SELECT QUERY_ID, SUM(Duration) `DURATION` FROM information_schema.profiling GROUP BY `QUERY_ID` ');
var_dump($timings);
Komentarų nėra:
Rašyti komentarą