Swiftpack.co - antranapp/LeakDetector as Swift Package

Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.
See all packages published by antranapp.
antranapp/LeakDetector v1.2.1
A SPM to support finding memory leaks for Swift projects.
⭐️ 10
🕓 1 year ago
iOS macOS
.package(url: "https://github.com/antranapp/LeakDetector.git", from: "v1.2.1")

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:

GitHub

link
Stars: 10
Last commit: 3 weeks ago
jonrohan Something's broken? Yell at me @ptrpavlik. Praise and feedback (and money) is also welcome.

Dependencies

Related Packages

Release Notes

v1.4.0
3 weeks ago

What's Changed

Full Changelog: https://github.com/antranapp/LeakDetector/compare/1.3.0...1.4.0

Swiftpack is being maintained by Petr Pavlik | @ptrpavlik | @swiftpackco | API | Analytics