# krzysztofzablocki/LifetimeTracker

Find retain cycles / memory leaks sooner.

Repository: https://github.com/krzysztofzablocki/LifetimeTracker
Canonical: https://ross.abutalabs.com/products/lifetimetracker
Homepage: http://merowing.info
Language: Swift
License: MIT
License Family: permissive
Topics: memory-leaks, retain-cycles, tool, swift, ios
Last push: 2026-03-05T07:16:35+00:00

## Health v2 (maintenance only)
Score: 66/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 70, release rhythm 41, longevity 100
- inputs: {"age_days": 3320, "days_push": 181, "days_rel": 181, "gap_med": 274, "n_releases_24m": 2}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 3305, forks 155 (observed 2026-08-28T04:07:55.849602+00:00)

## What it is
LifetimeTracker is a Swift library for iOS that surfaces retain cycles and memory leaks in real time during development. It tracks object lifetimes and displays issues via an in-app dashboard overlay, working with both Swift and Objective-C codebases.

## Use cases
- find retain cycles in ios app
- detect memory leaks during development
- track viewmodel deallocation
- debug memory issues in swift classes
- surface leaked objects while developing features
- monitor object lifetimes in objective-c and swift

## When to choose
- you want immediate visual feedback on leaks while developing, not sporadic Instruments sessions
- your codebase is pure Swift where ObjC-runtime-based detectors like FBRetainCycleDetector fall short
- you want to track key actors like ViewModels and Controllers with a lightweight debug-only dependency

## When to avoid
- you need automatic retain-cycle detection with full object graph analysis rather than lifetime tracking
- you want leak detection in production or release builds
- your project is not iOS/Cocoa-based

## Facets
- artifact type: library
- maturity: active
- function: monitoring, developer-tools, testing
- domain: developer-tools, mobile-development, apple-ecosystem
- platform: -
- tags: memory-leaks, retain-cycles, debugging, swift, objective-c, in-app-dashboard, ios, mobile

## Member repositories
- krzysztofzablocki/LifetimeTracker (main) score 66

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:07:55.849602+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-29T18:42:39.384018+00:00, confidence not recorded.
  - readme: https://github.com/krzysztofzablocki/LifetimeTracker (fetched 2026-08-28T04:07:55.849602+00:00, sha 2d750defa563)
  - homepage: http://merowing.info (fetched 2026-08-29T09:35:16.349267+00:00, sha 61f3f84527cc)
  - site_page: https://merowing.info/about (fetched 2026-08-29T09:35:16.351901+00:00, sha 169bfe72ef06)
  - site_page: https://merowing.info/posts/eval-loops-for-llm-features (fetched 2026-08-29T09:35:16.354770+00:00, sha b28398939c2f)
- Data as of 2026-08-30T08:39:29.467469+00:00.
