ThinkPHP中的行为是一个比较抽象的概念,你可以把行为想象成在应用执行过程中的一个动作。
不熟悉的xhprof的,请参考前一篇文章:http://www.tech1024.com/original/2990.html
如果你还不了解thinkphp的钩子和行为,可以参考手册:https://www.kancloud.cn/manual/thinkphp5_1/354129