music4kid/PLeakSniffer
소개
iOS 프로젝트의 메모리 누수를 자동으로 감지합니다.
웹 및 앱 개발측정된 스타 증가
- in 24h
- 0
- in 7 days
- 0
- in 15 days
- 0
- in 1 month
- 기록 수집 중
서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.
README.md
OriginalPLeakSniffer
We are building controllers most of the time, memory leaks happen within controllers. Retain cycle stops controller from being released, UIView objects within controllers somehow get held by other objects, PLeakSniffer shows its value in such circumstances, it provides suggestions, but guarantees nothing.
It is your duty to set a breakpoint in the suspicous object's dealloc, and reveal the only truth.
Capability
PLeakSniffer can help detect memory leaks, including UIViewController, UIView, and all custom Properties. It provides suggestions with suspicious objects, prints a log message in the console like:
Detect Possible Controller Leak: %@
Detect Possible Leak: %@
Installation
Plan A:
clone this repo, copy classes under PLeakSniffer folder into your project.
Plan B:
PLeakSniffer is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod "PLeakSniffer"
How to use
#if MY_DEBUG_ENV
[[PLeakSniffer sharedInstance] installLeakSniffer];
#endif
make sure you embed PLeakSniffer with debug macro, do not bring it to online users.
License
PLeakSniffer is available under the MIT license. See the LICENSE file for more info.
관련 프로젝트 살펴보기
불러오는 중…