antranapp / LeakDetector

A SPM to support finding memory leaks for Swift projects.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

LeakDetector

Introduction

LeakDetector is based on the implementation from leakdetector packge, which in turn is derived from the implementation of a leak detecktor in UBER's RIB framework.

In parallel to a RxSwift-based implementation, LeakDetectorCombine uses Combine framework to provide Combine-compatible APIs.

I accidently found another implementation of this LeakDetector from LifeCycleKit which shares many similar ideas. The implementation in LifeCycleKit has much nicer APIs though. So I recommend you to take a look at the implementation of the LeakDetector in LifeCycleKit as well.

Demo

There is a demo project to demostrate different use cases of the library.

demo

This demo app focuses on common mistakes that could lead to retain cycles/memory leaks.

References:

About

A SPM to support finding memory leaks for Swift projects.


Languages

Language:Swift 100.0%