 <p>Symfony's profiler can't scan to code for all stopwatch instances and put that into the timeline. You have to use the preconfigured stopwatch provided by the profiler instead:</p> <pre><code>public function testAction() { $stopwatch = $this-&gt;get('debug.stopwatch'); $stopwatch-&gt;start('testController'); // ... $event = $stopwatch-&gt;stop('testController'); return $response; } </code></pre> <p>However, your controller is already on the timeline...</p>