1 Commits
Author SHA1 Message Date
Brandon McGintyandClaude Opus 5 ecf00271b3 add a memory watcher script
Records resident memory alongside the Go heap size and dumps heap and
goroutine profiles once memory passes a threshold, while the process is
still alive to ask.

The ratio between the two numbers is what identifies the source: barnard's
Go heap sits at a few megabytes in normal operation, so memory growth with a
flat Go heap points at cgo allocations in OpenAL, opus or rnnoise, which the
Go collector cannot see and therefore never applies back pressure to.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-08-24 12:32:52 -04:00