I want to know how much time is executed every action. The easiest/ correct way would be to use AOP.
I'd like to have something like this:
/**
* @FLOW3\Before("method(.*->action.*())")
*/
public function markFirstTimeTag() {
// Do something here.
}
...
/**
* @FLOW3\After("method(.*->action.*())")
*/
public function markSecondTimeTag() {
// Do something here.
}
I read about the FLOW3 and this framework I liked. But this is a full-stack framework itself.
Is there the implementation of AOP pattern for Yii 2?
I usually use Logging to profile my code.
This traces can be found in the Logs section of the debug bar.
This could be used in combination with beforeAction() and afterAction() (not tested)
I also found Performance Profiling in the docs, but i have not tried any of the solutions.