答案 0 :(得分:2)
您可以使用Stopwatch component:
public function bottleNeckAction()
{
$stopwatch = $this->get('debug.stopwatch');
$stopwatch->start('someServiceCall');
$this->someServiceCall();
$stopwatch->stop('someServiceCall');
//…
}