android ndk中使用gprof
摘要:
1、下载gprof支持库下载地址:http://code.google.com/p/android-ndk-profiler/2、代码上的修改添加 在初始化时:monstartup("yourlib.so"); 在退出时添加:setenv("CPUPROFILE", "/sdcard/gmon.out", 1);moncleanup();3、makefile文件修改:由于-pg 和 -fomit-frame-pointer -ffunction-sections不能兼容,所以后两个编译参数不能用。PIG = -pginclude=$( 阅读全文
posted @ 2014-03-26 14:36 袁军峰 阅读(818) 评论(0) 推荐(0)
浙公网安备 33010602011771号