if (preg_match('/^' . preg_quote($last->name(), '/') . '/', $next->name())) { $last->add_child($next); continue; } } $last = $next; if (preg_match('/^query: /', $next->name()) || preg_match('/^query-m: /', $next->name())) { $sqltotal += $next->time(); $queries[] = $next; } else { $points[] = $next; } } $s = new profile_point('SQL Queries', 0, $sqltotal, 0, 0); foreach ($queries as $q) { $s->add_child($q); } $points[] = $s; // @codingStandardsIgnoreStart @usort($points, 'compare_point'); // @codingStandardsIgnoreEnd foreach ($points as $point) { if (strlen($filter) && !strstr($point->name(), $filter)) { continue; } $point->display($expand); } ?> </tbody> </table> <hr />