leakcanary-shark
« Back to VersTracker
Description:
CLI Java memory leak explorer for LeakCanary
Type: Formula  |  Tracked Since: Dec 28, 2025
Links: Homepage  |  @square  |  formulae.brew.sh
Category: Developer tools
Tags: android memory-leak cli java debugging ci-cd
Install: brew install leakcanary-shark
About:
LeakCanary Shark is a standalone command-line interface (CLI) tool designed to analyze Android heap dumps for memory leak detection. It provides a powerful and scriptable alternative to the GUI-based analyzer, enabling developers to automate leak detection in CI environments. By parsing heap dump data directly from the terminal, it helps identify the root cause of memory issues efficiently.
Key Features:
  • Standalone CLI tool for analyzing Android heap dumps
  • Scriptable for automated memory leak detection in CI/CD pipelines
  • Provides detailed reports on leak traces and memory usage
  • Fast and efficient parsing without needing a GUI
Use Cases:
  • Automating memory leak detection in continuous integration workflows
  • Quickly diagnosing memory issues on devices or emulators via terminal
  • Comparing heap dumps over time to identify regressions
Alternatives:
  • LeakCanary GUI – The official GUI provides a visual interface for exploration, while Shark is optimized for CLI automation and scripting.
  • Eclipse MAT – A general-purpose Java heap analyzer, whereas Shark is specifically optimized for Android heap structures and LeakCanary's leak patterns.
Version History
Detected Version Rev Change Commit