示例#1
0
 /**
  * Stops and flushes all timers
  */
 public function flush()
 {
     if ($this->worksWithoutPinba && $this->getClientUsed() === self::CLIENT_NONE) {
         return;
     }
     pinba_timers_stop();
     pinba_flush();
 }
示例#2
0
 /**
  * Stops all running timers.
  *
  * @return bool
  */
 public static function stopAll()
 {
     if (!self::isEnabled()) {
         return;
     }
     return pinba_timers_stop();
 }