Retain cycles are one of the most common ways of creating memory leaks. It's incredibly easy to create a retain cycle, and tends to be hard to spot it. The goal of FBRetainCycleDetector is to help find retain cycles at runtime. The features of this project were influenced by Circle. FBRetainCycleDetector will look for cycles that are no longer than 10 objects. We can make it bigger (although it's going to be slower!). There could also be retain cycles that we would like to omit. It's because not every retain cycle is a leak, and we might want to filter them out. Every filter is a block that having two FBObjectiveCGraphElement objects can say, if their relation is valid. If you want to profile your app, you might want to have an abstraction over how to get candidates for FBRetainCycleDetector. While you can simply track it your own, you can also use FBAllocationTracker. It's a small tool we created that can help you track the objects.

Features

  • FBRetainCycleDetector is built out from non-debug builds
  • You'll be able to use FBRetainCycleDetector fully only in Debug builds
  • Controlled by compilation flag that can be provided to the build to make it work in other configurations
  • FBRetainCycleDetector will look for cycles that are no longer than 10 objects
  • Track all allocations and force retain cycle detection from UI

Project Samples

Project Activity

See All Activity >

Categories

Libraries

License

BSD License

Follow FBRetainCycleDetector

FBRetainCycleDetector Web Site

You Might Also Like
Holistically view your business data within a single solution. Icon
Holistically view your business data within a single solution.

For IT service providers and MSPs that need a data platform to manage their processes

BrightGauge, a ConnectWise solution, was started in 2011 to fill a missing need in the small-to-medium IT Services industry: a better way to manage data and provide the value of work to clients. BrightGauge Software allows you to display all of your important business metrics in one place through the use of gauges, dashboards, and client reports. Used by more than 1,800 companies worldwide, BrightGauge integrates with popular business solutions on the market, like ConnectWise, Continuum, Webroot, QuickBooks, Datto, IT Glue, Zendesk, Harvest, Smileback, and so many more. Dig deeper into your data by adding, subtracting, multiplying, and dividing one metric against another. BrightGauge automatically computes these formulas for you. Want to show your prospects how quick you are to respond to tickets? Show off your data with embeddable gauges on public sites.
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of FBRetainCycleDetector!

Additional Project Details

Operating Systems

Apple iPhone

Programming Language

Objective C

Related Categories

Objective C Libraries

Registered

2022-01-28