Piwik\FrontController::__destruct PHP Method

__destruct() public method

Called at the end of the page generation
public __destruct ( )
    public function __destruct()
    {
        try {
            if (class_exists('Piwik\\Profiler') && !SettingsServer::isTrackerApiRequest()) {
                // in tracker mode Piwik\Tracker\Db\Pdo\Mysql does currently not implement profiling
                Profiler::displayDbProfileReport();
                Profiler::printQueryCount();
            }
        } catch (Exception $e) {
            Log::debug($e);
        }
    }