GithubHelp home page GithubHelp logo

wanily / crchecker Goto Github PK

View Code? Open in Web Editor NEW

This project forked from yyued/crchecker

0.0 2.0 0.0 1.15 MB

CRChecker is a debug tool, helps you find out circular reference problem.

Home Page: http://www.duowan.com/

License: MIT License

Ruby 2.68% Objective-C 97.32%

crchecker's Introduction

CRChecker

Objective-C Circular Reference Checker

How can we find out circular reference problem?

It's not a difficult issue.

We just swizzling Objective-C init and dealloc method, every object will execute these method at live cycle start and end.

If your instanced object has circular reference problem. These object may not be dealloc.

So, we set a counter, just make all classes init +1, dealloc -1.

You see, the dashBoard data source came here.

Usage

It's really easy to use this tool.

Be careful, this tool should not use under production.

If you use CocoaPods

  1. Podfile add Pod 'CRChecker'
  2. pod update
  3. It's OK~

If you eager use source code

  1. Go to Github Download latest version zip.
  2. Add CRChecker/CRChecker files into your project
  3. It's OK~

Counter will not record system libraries class.

Version 1.0.1

CRCounter will not record any system libraries. That's because, we think developer should focus on your code.

Counter could only record custom prefix class.

add this line to your code

[CRChecker addCustomClassPrefix:@"Demo"];

Only Demo Prefix Classes will be record.

Wiki

More advanced usage or Simple Chinese Direction, see Wiki.

crchecker's People

Contributors

ponycui avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.