
Profile
文章平均质量分 91
old_man
这个作者很懒,什么都没留下…
展开
-
Profile 工具系列之一:gprof
先说结论gprof 在目前来说,在 profile 界并没有明显优势首先是对动态库支持不好其次它基本可以被 gperftools 取代所以没兴趣的就不必往下看了用法gcc 编译时带上 -pg 参数,运行程序时就会生成 gmon.out 文件然后用 gprof 命令分析该文件gcc 的 -pg 参数You must use this option when compiling the原创 2017-05-07 11:24:40 · 3162 阅读 · 0 评论 -
Profile 工具系列之三:oprofile(Android,未成功)
写在前面本文研究了一下用 oprofile 在 Android 做 profile 之后,最终弃用原因之一是编译内核比较麻烦(oprofile 需要内核的配合)原因之二是从 Android N 开始,官方已经不再使用 oprofile原因之三是找到了好的替代品:simpleperf关于 oprofile关于正常的 Oprofile(Linux 下的):参考: http://www.cnb原创 2017-05-28 23:18:12 · 2002 阅读 · 0 评论 -
Profile 工具系列之二: gperftools
简介gperftools 原名 Google Performance Tools,是一套可以做 profile 的工具,由 google 提供。目前看来在 Linux 上特别的好使,Windows 基本不能用(官网说 Windows 正在开发,不知道会不会有下文)CPU profile 只是这个工具其中一个 feature,我们就用这个 feature。其他 feature 还有 tcmal原创 2017-05-22 13:13:14 · 4164 阅读 · 0 评论 -
Profile 工具系列之四:simpleperf
关于 simpleperfsimpleperf 是 google 随 NDK 一起发布的一款 profile 工具,从 NDK r13 开始官方文档请参考 google 在 NDK 里放的 READMEHelloWorld 步骤把 simpleperf 可执行程序 push 到手机上。 simpleperf 在 NDK-r13b 的 simpleperf/android/ 里。根据被测程序和原创 2017-05-29 08:41:23 · 10123 阅读 · 0 评论