validation library

Capture and validation tooling for Sleuth's evidence ledger.

The example app's capture screens and the evidence audits use these names to record and check detector captures. Apps that only run the overlay need package:sleuth/sleuth.dart alone.

This library is not covered by Sleuth's semver promise: a minor release can change or remove any name here. The same holds for main-API members typed with these names, such as Sleuth.repaintDetector or RebuildDetector.validationMetadata.

Classes

BracketSpec
One bracket axis declaration for a detector's runtimeVerified evidence.
ComponentMetadata
Metadata describing how a non-detector component's reliability claim was validated.
DetectorMetadata
Metadata describing how a detector's threshold or heuristic was validated.
FrameTimingDetector
Detects jank frames using SchedulerBinding.addTimingsCallback (fast, every frame) and optionally augments with exact VM Timeline phase data.
GpuPressureDetector
Detects GPU pressure from expensive rendering operations.
ImageMemoryDetector
Detects images decoded at a larger resolution than they are shown.
MemoryPressureDetector
Detects memory pressure using VM GC events and heap growth trends.
PollTimings
Cost of one VM timeline poll, split by segment.
ProfileCaptureSchema
Schema + validator for Sleuth profile-mode captures.
RepaintDetector
Detects expensive repainting using VM Timeline PAINT scopes or debug callback paint counts.
StartupDetector
Detects slow app startup using metrics captured by Sleuth.init.
StreamResourcePollResult
Diagnostic result of a single allocation-profile poll triggered by StreamResourceDetector.pollAllocationProfileNow. Capture screens log this every poll so an empty K=4 window can be diagnosed without a second 50-second on-device session.
TrackedResourceDetector
Opt-in retention tracker. Users register resources via Sleuth.trackResource; emits with confirmed confidence.

Enums

EvidenceTier
Evidence tier for a detector's threshold or heuristic.

Mixins

ComponentMetadataProvider
Mixin that lets a non-detector component declare its validation metadata in a parallel shape to DetectorMetadataProvider.
DetectorMetadataProvider
Mixin that lets a detector declare its validation metadata.

Constants

kSleuthPackageVersion → const String
Stamped on ext.sleuth.diagnose. Keep in sync with pubspec.yaml.