首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 开发语言 > 编程 >

怎么阅读google perf tool产生的profile结果

2013-10-08 
如何阅读google perf tool产生的profile结果?参考: http://google-perftools.googlecode.com/svn/trunk/do

如何阅读google perf tool产生的profile结果?

参考: http://google-perftools.googlecode.com/svn/trunk/doc/cpuprofile.html

怎么阅读google perf tool产生的profile结果


基本方法简述:

Class NameMethod Namelocal (percentage)of cumulative (percentage)


ts_main_thread, 76.7%表示ts_main_thread这个函数本身消耗的时间片(不包含子程序消耗的时间),99%表示表示ts_main_thread这个函数及其所调用的子函数一起消耗的时间片。寻找热点,首先关注cumulative的percentage,寻找最大的。然后再分析它下面每个函数分别消耗多少时间。



热点排行