http://segmentfault.com/a/1190000003509917
http://www.cnblogs.com/casatwy/archive/2013/01/17/2865241.html
//开启xhprof并开始记录 xhprof_enable(); //运行一些函数 foo(); //停止记录并取到结果 $xhprof_data = xhprof_disable();