Exemplo n.º 1
0
 /**
  * Start a profiling run and return the run instance.
  *
  * @throws \RuntimeException
  * @return Domain\Model\ProfilingRun
  * @api
  */
 public function start()
 {
     if ($this->currentlyRunningProfilingRun !== NULL) {
         throw new \RuntimeException('Profiling already started', 1363337740);
     }
     $this->currentlyRunningProfilingRun = new Domain\Model\ProfilingRun();
     $this->currentlyRunningProfilingRun->start();
     return $this->currentlyRunningProfilingRun;
 }