+use JMS\DiExtraBundle\Annotation as DI;
+use Symfony\Component\Stopwatch\Stopwatch;
+ * @DI\Inject("debug.stopwatch", required=false)
+ * @param string $section
+ protected function watchOpenSection($section)
+ if (!$this->stopwatch) {
+ $this->stopwatch->openSection($section);
+ * @param string $section
+ protected function watchCloseSection($section)
+ if (!$this->stopwatch) {
+ $this->stopwatch->stopSection($section);
+ * @param string $catagory
+ protected function watchStart($name, $catagory = null)
+ if (!$this->stopwatch) {
+ $this->stopwatch->start($name, $catagory);
+ protected function watchLap($name)
+ if (!$this->stopwatch) {
+ $this->stopwatch->lap($name);
+ protected function watchStop($name)
+ if (!$this->stopwatch) {
+ $this->stopwatch->stop($name);