在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称:Tencent/MLeaksFinder开源软件地址:https://github.com/Tencent/MLeaksFinder开源编程语言:Objective-C 95.2%开源软件介绍:MLeaksFinderMLeaksFinder helps you find memory leaks in your iOS apps at develop time. It can automatically find leaks in UIView and UIViewController objects, present an alert with the leaked object in its View-ViewController stack when leaks happening. CommunicationQQ group: 482121244 Installation
MLeaksFinder comes into effect after WARNING: FBRetainCycleDetector is removed from the podspec due to Facebook's BSD-plus-Patents license. If you want to use FBRetainCycleDetector to find retain cycle, add UsageMLeaksFinder can automatically find leaks in UIView and UIViewController objects. When leaks happening, it will present an alert with the leaked object in its View-ViewController stack.
For the above example, we are sure that objects of Mute AssertionIf your class is designed as singleton or for some reason objects of your class should not be dealloced, override - (BOOL)willDealloc {
return NO;
} Find Leaks in Other ObjectsMLeaksFinder finds leaks in UIView and UIViewController objects by default. However, you can extend it to find leaks in the whole object graph rooted at a UIViewController object. - (BOOL)willDealloc {
if (![super willDealloc]) {
return NO;
}
MLCheck(self.viewModel);
return YES;
} |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论