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