Action Execution time

I am trying to do some tuning of my app.

I would like to be able to get the execution time of controller actions, and perhaps model, view and component as well.

In the Guide 2.0 under filters there is an example of ActionTimeFilter, but I have not been able to get it to work.

I put the code in a component and have tried calling it with:

    public function behaviors()


     	return [

            'class' => 'yii\components\TimeFilter',



But nothing happens… No errors, nothing in the trace log.



If you want to quickly measure impact of different parts, try Yii’s debug performance panel. If you need more precise tuning either use XHProf or Blackfire.