# LeakCanary

A memory leak detection library for Android.

Repository: https://github.com/square/leakcanary
Canonical: https://ross.abutalabs.com/products/leakcanary
Homepage: https://square.github.io/leakcanary
Language: Kotlin
License: Apache-2.0
License Family: permissive
Topics: android, memory-leak, java, kotlin, kotlin-android, outofmemory, outofmemoryerror, leakcanary, leak-canary, leak-trace
Last push: 2026-08-26T08:02:03+00:00
Link (homepage): https://square.github.io/leakcanary

## Health v2 (maintenance only)
Score: 85/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 99, release rhythm 58, longevity 100
- inputs: {"age_days": 4144, "days_push": 7, "days_rel": 69, "gap_med": null, "n_releases_24m": 1}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 29987, forks 3992 (observed 2026-08-28T04:11:53.797564+00:00)

## What it is
LeakCanary is a memory leak detection library for Android that automatically detects and analyzes memory leaks in Android applications. It leverages deep knowledge of Android Framework internals to produce leak traces that help developers fix OutOfMemoryError crashes, jank, and ANR freezes.

## Use cases
- detect memory leaks in my android app
- fix outofmemoryerror crashes
- find leaked activities and fragments
- analyze heap dumps to find leak causes
- reduce app jank and ANR freezes
- debug memory issues during development

## When to choose
- you are building an Android app and want automatic memory leak detection during development
- you need actionable leak traces that pinpoint the reference chain causing a leak
- you want a drop-in debug dependency with minimal setup

## When to avoid
- you need memory profiling for non-Android JVM, desktop, or server applications
- you need a general-purpose performance profiler rather than leak detection
- you are targeting iOS or other non-JVM mobile platforms

## Facets
- artifact type: library
- maturity: active
- function: monitoring, testing, developer-tools
- domain: android-tools, developer-tools, performance
- platform: jvm
- tags: memory-leak-detection, android-debugging, heap-analysis, kotlin, outofmemoryerror, android

## Member repositories
- square/leakcanary (main) score 85
- square/haha (backend) score 10

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:11:53.797564+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-29T16:52:48.550133+00:00, confidence not recorded.
  - readme: https://github.com/square/leakcanary (fetched 2026-08-28T04:11:53.797564+00:00, sha d2705c4e1536)
  - homepage: https://square.github.io/leakcanary (fetched 2026-08-29T07:49:48.525377+00:00, sha 5c563a022167)
- Data as of 2026-08-30T08:39:29.467469+00:00.
