Skip to content
pubscout

sleuth

1.0.0, released 3 weeks ago by an unverified publisher

In-app performance diagnostics overlay surfacing jank, memory leaks, and bottlenecks.

$ flutter pub add sleuth
Source repository

What it does

Sleuth runs an in-app overlay that detects jank, memory leaks, slow networks, GPU pressure, and widget anti-patterns. Every detected issue ships with a fix hint, source line, and causal relationships.

AI-written summary of version 1.0.0, based on the package's README and metadata. Report an inaccuracy

Use it when

  • You want to continuously monitor performance inside your Flutter app during development and profile runs.
  • You need structural checks like non-lazy list detection or missing repaint boundaries that standard DevTools might miss.

Skip it when

  • You are running in a production release build where the overlay is automatically dropped.
  • You require detailed heap snapshot object graphs, which are better suited for DevTools.

Strengths

  • Runs directly inside the app without requiring an external tool connection for basic overlay views.
  • Provides actionable fix hints and source locations for every performance issue.
  • Includes 21 built-in detectors covering frames, layout, memory, network, and startup.

Weaknesses

  • VM-connected detectors require running with --no-dds and profile/debug modes.
  • Reading the VM timeline can add minor isolate overhead on lower-end physical devices or simulators.

Setup

Kind
Flutter widgets
Effort
Low
Code generation
No
Direct dependencies
3

Add the dependency, wrap your root app widget with Sleuth.track(child: MyApp()), and run with flutter run --profile --no-dds.

import 'package:sleuth/sleuth.dart';

void main() => runApp(Sleuth.track(child: MyApp()));

Alternatives

Packages that do the same job and could replace sleuth.

  • stager

    Flutter productivity tool to isolate and run UI widgets as standalone apps.

Works with

Packages commonly used together with sleuth: ones it builds on, ones built on it, and its own family.