コード例 #1
0
ファイル: Pinba.php プロジェクト: sp-niemand/yii2-pinba
 /**
  * Stops and flushes all timers
  */
 public function flush()
 {
     if ($this->worksWithoutPinba && $this->getClientUsed() === self::CLIENT_NONE) {
         return;
     }
     pinba_timers_stop();
     pinba_flush();
 }
コード例 #2
0
ファイル: Timer.php プロジェクト: bankiru/yii-pinba
 /**
  * Stops all running timers.
  *
  * @return bool
  */
 public static function stopAll()
 {
     if (!self::isEnabled()) {
         return;
     }
     return pinba_timers_stop();
 }