# wojteklu/Watchdog

Class for logging excessive blocking on the main thread

Repository: https://github.com/wojteklu/Watchdog
Canonical: https://ross.abutalabs.com/products/wojteklu-watchdog
Language: Swift
License: MIT
License Family: permissive
Topics: swift, mainthread, debugging, ios, macos
Last push: 2024-06-14T22:54:44+00:00

## Health v2 (maintenance only)
Score: 32/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 0, release rhythm 35, longevity 100
- inputs: {"age_days": 4009, "days_push": 810, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_releases
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1873, forks 91 (observed 2026-08-28T04:05:47.167881+00:00)

## What it is
Watchdog is a small Swift library that monitors the main thread and logs when it is blocked longer than a configurable threshold. It supports a strict mode that pauses execution so developers can inspect which code is blocking the main thread.

## Use cases
- detect main thread hangs in an iOS app
- log when the UI thread is blocked for too long
- find which code is blocking the main thread during development
- debug janky or unresponsive interfaces on iOS or macOS
- enforce main thread responsiveness thresholds in strict mode

## When to choose
- you are building an iOS, tvOS, or macOS app in Swift and want lightweight main-thread hang detection during development
- you need a tiny drop-in debugging aid rather than a full profiling suite

## When to avoid
- you need production-grade performance monitoring or crash reporting rather than a development-time debugger
- your project is not on the Apple/Swift platform

## Facets
- artifact type: library
- maturity: maintenance
- function: logging, monitoring
- domain: developer-tools, mobile-development, performance
- platform: -
- tags: main-thread, ui-debugging, swift-library, cocoapods, carthage, debugging, ios, macos, swift

## Member repositories
- wojteklu/Watchdog (main) score 32

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:05:47.167881+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-30T03:14:55.741134+00:00, confidence not recorded.
  - readme: https://github.com/wojteklu/Watchdog (fetched 2026-08-28T04:05:47.167881+00:00, sha 9f77433c97da)
- Data as of 2026-08-30T08:39:29.467469+00:00.
