[*] CORE : Profiling hide non doubles
This commit is contained in:
@@ -466,12 +466,18 @@ abstract class Controller extends ControllerCore
|
|||||||
echo '<br /><b>Useless GROUP BY need to be removed</b>';
|
echo '<br /><b>Useless GROUP BY need to be removed</b>';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
echo '</div>
|
|
||||||
<div class="rte" style="text-align:left;padding:8px">
|
|
||||||
<h3><a name="doubles">Doubles (IDs replaced by "XX") (total = '.count(Db::getInstance()->uniqQueries).')</a></h3>';
|
|
||||||
$queries = Db::getInstance()->uniqQueries;
|
$queries = Db::getInstance()->uniqQueries;
|
||||||
arsort($queries);
|
arsort($queries);
|
||||||
|
$count = count(Db::getInstance()->uniqQueries);
|
||||||
|
foreach ($queries as $q => &$nb)
|
||||||
|
if ($nb == 1)
|
||||||
|
$count--;
|
||||||
|
if ($count)
|
||||||
|
echo '</div>
|
||||||
|
<div class="rte" style="text-align:left;padding:8px">
|
||||||
|
<h3><a name="doubles">Doubles (IDs replaced by "XX") (total = '.$count.')</a></h3>';
|
||||||
foreach ($queries as $q => $nb)
|
foreach ($queries as $q => $nb)
|
||||||
|
if($nb > 1)
|
||||||
echo $hr.'<b '.$this->getQueryColor($nb).'>'.$nb.'</b> '.$q;
|
echo $hr.'<b '.$this->getQueryColor($nb).'>'.$nb.'</b> '.$q;
|
||||||
echo '</div>
|
echo '</div>
|
||||||
<div class="rte" style="text-align:left;padding:8px">
|
<div class="rte" style="text-align:left;padding:8px">
|
||||||
|
|||||||
Reference in New Issue
Block a user