Basecoat\DB::updateProfiling PHP Метод

updateProfiling() приватный Метод

Update profiling array with query information
private updateProfiling ( string $query, array $bindings, float $qTime, string $result, string $label, mixed $debug = null )
$query string query that was run
$bindings array data bindings used in the query
$qTime float time in seconds.fraction it took to run the query.
$result string the result of the query run (general an int)
$label string the label of the connection used
$debug mixed debugging information (i.e. EXPLAIN for a SELECT)
    private function updateProfiling($query, $bindings, $qTime, $result, $label, $debug = null)
    {
        self::$queryCntr++;
        self::$queryTime += $qTime;
        if (self::$queryCntr < self::$maxProfiling) {
            self::$profiling[] = array('connection' => $label, 'query' => $query, 'bindings' => $bindings, 'time' => $qTime, 'result' => $result, 'debug' => $debug);
        } elseif (self::$queryCntr == self::$maxProfiling) {
            self::$profiling[] = 'MAX NUMBER OF PROFILING QUERIES EXCEEDED';
        }
    }