public function queryEnd($queryId)
    {
        $result = $this->parentQueryEnd($queryId);

        if ($this->captureStacktraces) {
            $this->stackTraces[$queryId] = $this->getStackTrace();
        }

        return $result;
    }