首页 新闻 会员 周边

gperftools 使用 prof 查看代码时间消耗没有输出

0
悬赏园豆:200 [待解决问题]

我用 gperftools 的 ProfilerStart 和 ProfilerStop 方式对代码时间消耗进行统计, 有文件输出, 但是使用 pprof --text 对文件进行分析的时候没有输出结果. 同时还有一些奇怪的错误如下:

Argument "MSWin32" isn't numeric in numeric eq (==) at /usr/local/bin/pprof line 4971.
Argument "linux" isn't numeric in numeric eq (==) at /usr/local/bin/pprof line 4971.

是不是因为ProfilerStart 到 ProfilerStop 之间执行的时间太短了的原因, 大概在 1000us 左右.

求大神解答.

Astone的主页 Astone | 初学一级 | 园豆:24
提问于:2016-03-26 17:42
< >
分享
清除回答草稿
   您需要登录以后才能回答,未注册用户请先注册