Habari\QueryProfile::__construct PHP Method

__construct() public method

Constructor for the query profile. Automatically sets the start time for the query
public __construct ( string $query )
$query string SQL being executed
    public function __construct($query)
    {
        $this->query_text = $query;
        /* Backtracing is very verbose. Enable only if set via query string */
        if (isset($_GET['db_profile']) && $_GET['db_profile'] == 'verbose') {
            $this->backtrace = debug_backtrace();
        }
    }