- Build the binary:
go build -o opperator ./cmd/app
- Run the TUI with CPU profiling:
Exercise the UI, then exit to flush the profile file.
./opperator --tui-cpuprofile /tmp/opperator.cpu
- Inspect the capture:
Use the web UI (or
go tool pprof -http=:4321 ./opperator /tmp/opperator.cpu
top/listcommands) to find hotspots.