Beispiel #1
0
 /**
  * Stop a profiling run if one is running, and return it.
  *
  * @return Domain\Model\ProfilingRun the profiling run or NULL if none is running
  */
 public function stop()
 {
     if (!$this->currentlyRunningProfilingRun) {
         return NULL;
     }
     $this->currentlyRunningProfilingRun->stop();
     $run = $this->currentlyRunningProfilingRun;
     $this->currentlyRunningProfilingRun = NULL;
     return $run;
 }