check Yii 1.0 action's execution time and memory usage

the follow code for trace executeion time and memory usage in Yii 1.0, it's useful for project control.

//Execution Time
Yii::getLogger()->getExecutionTime();


//Memory usage
memory_get_peak_usage();

//how to use
protected function afterAction(){
    //TODO add code here.
}