コード例 #1
0
 /**
  * Called at the end of the page generation
  */
 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);
     }
 }
コード例 #2
0
 /**
  * Called at the end of the page generation
  */
 public function __destruct()
 {
     try {
         if (class_exists('Piwik\\Profiler')) {
             Profiler::displayDbProfileReport();
             Profiler::printQueryCount();
             Log::debug(Registry::get('timer'));
         }
     } catch (Exception $e) {
     }
 }