博客地址:http://home.cnblogs.com/u/zengjianrong/
摘要: 待补充; 阅读全文
posted @ 2019-11-01 16:43 black_man 阅读(272) 评论(0) 推荐(0) 编辑
摘要: 工具准备 ubuntu:sudo apt-get install perf 嵌入式平台:下载源码编译 注意:编译过程中会有Auto-detectiing system feature的依赖库打印,注意其中off的,代表此库没有符号表; 测试程序增加-fno-omit-fram-pointer -fn 阅读全文
posted @ 2019-11-01 16:16 black_man 阅读(450) 评论(0) 推荐(0) 编辑
摘要: https://github.com/google/sanitizers/wiki https://github.com/google/sanitizers/wiki/MemorySanitizer Introduction MemorySanitizer (MSan) is a detector 阅读全文
posted @ 2019-11-01 15:54 black_man 阅读(684) 评论(0) 推荐(0) 编辑
摘要: https://github.com/google/sanitizers/wiki https://github.com/google/sanitizers/wiki/ThreadSanitizerCppManual Introduction ThreadSanitizer (aka TSan) i 阅读全文
posted @ 2019-11-01 15:51 black_man 阅读(898) 评论(0) 推荐(0) 编辑
摘要: https://github.com/google/sanitizers/wiki https://github.com/google/sanitizers/wiki/AddressSanitizer AddressSanitizer (aka ASan) is a memory error det 阅读全文
posted @ 2019-11-01 15:48 black_man 阅读(936) 评论(0) 推荐(0) 编辑
摘要: 前言 gperf tools有很多功能,其中有一个heap profiler,可按函数级别定位分配内存的累积量 原理 gperf tools需要替换libc的malloc库,替换为tcmalloc:thread cache malloc,通过在tcmalloc加打桩,即可定位函数级别的内存的累积量 阅读全文
posted @ 2019-11-01 15:23 black_man 阅读(784) 评论(0) 推荐(0) 编辑