Latest 0.1.0
Homepage https://github.com/music4kid/PLeakSniffer
License MIT
Platforms ios 6.0
Authors

PLeakSniffer

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.

Latest podspec

{
    "name": "PLeakSniffer",
    "version": "0.1.0",
    "summary": "PLeakSniffer should be used as a suggesting tool to detect possible memory leaks",
    "homepage": "https://github.com/music4kid/PLeakSniffer",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "gao feng": "[email protected]"
    },
    "source": {
        "git": "https://github.com/music4kid/PLeakSniffer.git",
        "tag": "0.1.0"
    },
    "platforms": {
        "ios": "6.0"
    },
    "source_files": "PLeakSniffer/Classes/**/*",
    "public_header_files": "PLeakSniffer/Classes/PLeakSniffer.h"
}

Pin It on Pinterest

Share This