Documentation
¶
Overview ¶
stability-test — long-running leak + regression detector.
Opens a capture stream, pulls frames continuously, periodically closes and reopens the stream, and watches heap + reported frame rate. Exits non-zero if it detects:
- Heap growth > 50 MB between the first and last sample
- Average frame rate drops below 80% of target
- Any NextFrame error other than ctx.Canceled
Pre-release gate: `make stability-test` runs this for 24 hours and is a v0.1.0 quality gate. Short runs (-duration 5m) are useful in dev to catch obvious leaks.
Usage:
go run ./cmd/stability-test # default: 10 min go run ./cmd/stability-test -duration 24h go run ./cmd/stability-test -duration 1h -fps 30 -reopen 5m
Click to show internal directories.
Click to hide internal directories.