调试策略与工具使用指南
1. 内存泄漏检测
在程序开发中,内存泄漏是一个常见且棘手的问题。通过调用 GC_gcollect() 函数可以启动对内存泄漏的搜索。当执行该操作时,会在当前工作目录下创建一个名为 gc.log 的日志文件,其中详细记录了检测到的内存泄漏信息。以下是该日志文件可能包含的内容示例:
Leaked composite object at start: Oxbf9000, appro length: 10244
Leaked composite object at start: Oxbf6000, appro length: 10244
Leaked composite object at start: Oxbf3000, appro length: 10244
Leaked composite object at start: Oxbfoooo, appro length: 10244
Leaked composite object at start: OxbbcOOO, appro length: 10244
Leaked composite object at start: Oxbb9000, appro length: 10244
Leaked composite object at start: Oxbb6000, appro length: 10244
Leaked composite object at start: Oxbb3000, appro length: 10244
Leaked composite object at start:
超级会员免费看
订阅专栏 解锁全文
8599

被折叠的 条评论
为什么被折叠?



