Repository navigation
bmux v0.7.4
Pre-releaseOpt-in private CPU and allocation profiling for bmux clients and servers.
curl -fsSL https://raw.githubusercontent.com/bmux-dev/bmux/main/install.sh | shor, with Go 1.26+:
go install github.com/josephferrero/bmux/cmd/bmux@v0.7.4New
- Opt-in Go profiling. Set
BMUX_PPROF_DIRwhen starting a client or server to expose CPU, allocation and heap profiles through private per-process Unix sockets. Profiling is disabled by default and opens no TCP port (#178, #179). - Concurrent capture helper.
scripts/profile-bmux.py, available in the repository, records separate client/server CPU and allocation profiles over the same window. It uses only Python's standard library, writes private files, refuses to overwrite captures, and never starts or stops bmux. - Profiling guide. Instructions cover isolated test builds, static-versus-animated comparisons, Go pprof analysis, and cleanup.
This release adds diagnostics; it does not change rendering or claim a reduction in CPU usage.
Upgrading
The protocol is still version 10. Existing compatible servers remain usable; installing this release does not require an immediate server restart and does not automatically enable profiling.
Profiling must be enabled when each process starts. Relaunch a client with BMUX_PPROF_DIR to capture that client. An already-running server cannot acquire the profiling hooks just by installing the new binary: use an isolated test server, as shown in the guide, rather than restarting a busy main server. If you choose to run bmux restart, programs running in panes end; saved workspaces and recognized agent conversations can reopen, but arbitrary live processes are not preserved.