【文件属性】:
文件名称:MemoryLeaks:内存泄漏的常见情况和使用MLeaksFinder的检测
文件大小:3.24MB
文件格式:ZIP
更新时间:2021-04-30 08:57:58
memory-leaks leaks mleaksfinder Objective-C
一 、背景
平常我们都会用 Instrument 的 Leaks / Allocations 或其他一些开源库进行内存泄露的排查,但是检查过程非常繁琐,而且不清晰,最主要的是Abandoned memory不会被检测出来。
Leaks
从苹果的开发者文档里可以看到,一个 app 的内存分三类:
Leaked memory: Memory unreferenced by your application that cannot be used again or freed (also detectable by using the Leaks instrument).
Abandoned memory: Memory still referenced by your application that has no useful purpose.
Cached memory: Memory s