21     private $logAllQueries;
    26     private $logQueryTime;
    31     private $logCallStack;
    38     public function __construct($logAllQueries = 
false, $logQueryTime = 0.05, $logCallStack = 
false)
    40         $this->logAllQueries = $logAllQueries;
    41         $this->logQueryTime = $logQueryTime;
    42         $this->logCallStack = $logCallStack;
    50         $this->timer = microtime(
true);
    65         $message = 
'## ' . getmypid() . 
' ## ';
    67         $time = sprintf(
'%.4f', microtime(
true) - $this->timer);
    69         if (!$this->logAllQueries && $time < $this->logQueryTime) {
    77                 $message .= 
'TRANSACTION ' . $sql . $nl;
    83                     $message .= 
'BIND: ' . var_export($bind, 
true) . $nl;
    92         if ($this->logCallStack) {
 static backtrace($return=false, $html=true, $withArgs=true)
 
__construct($logAllQueries=false, $logQueryTime=0.05, $logCallStack=false)
 
getStats($type, $sql, $bind=[], $result=null)