Add test for nested RecordEvent. (#8773)
Add test for nested RecordEvent. (#8773)

* Add test for nested RecordEvent.

* Remove the debug information.

* Add log information for the 3 usages and reduce the loop counts of nested case.

putcn/Paddle,QiJune/Paddle,PaddlePaddle/Paddle,jacquesqiao/Paddle,lcy-seso/Paddle,PaddlePaddle/Paddle,Canpio/Paddle,Canpio/Paddle,chengduoZH/Paddle,Canpio/Paddle,chengduoZH/Paddle,PaddlePaddle/Paddle,lcy-seso/Paddle,luotao1/Paddle,putcn/Paddle,reyoung/Paddle,chengduoZH/Paddle,putcn/Paddle,jacquesqiao/Paddle,reyoung/Paddle,jacquesqiao/Paddle,PaddlePaddle/Paddle,Canpio/Paddle,PaddlePaddle/Paddle,luotao1/Paddle,pkuyym/Paddle,pkuyym/Paddle,baidu/Paddle,baidu/Paddle,jacquesqiao/Paddle,jacquesqiao/Paddle,baidu/Paddle,tensor-tang/Paddle,putcn/Paddle,pkuyym/Paddle,reyoung/Paddle,reyoung/Paddle,PaddlePaddle/Paddle,PaddlePaddle/Paddle,baidu/Paddle,luotao1/Paddle,chengduoZH/Paddle,chengduoZH/Paddle,putcn/Paddle,QiJune/Paddle,reyoung/Paddle,lcy-seso/Paddle,Canpio/Paddle,tensor-tang/Paddle,tensor-tang/Paddle,lcy-seso/Paddle,jacquesqiao/Paddle,QiJune/Paddle,Canpio/Paddle,luotao1/Paddle,lcy-seso/Paddle,pkuyym/Paddle,QiJune/Paddle,reyoung/Paddle,lcy-seso/Paddle,pkuyym/Paddle,Canpio/Paddle,putcn/Paddle,tensor-tang/Paddle,pkuyym/Paddle,Canpio/Paddle,tensor-tang/Paddle,luotao1/Paddle,QiJune/Paddle,baidu/Paddle,luotao1/Paddle,luotao1/Paddle,QiJune/Paddle