Skip to content

Latest commit

 

History

History
16 lines (15 loc) · 415 Bytes

File metadata and controls

16 lines (15 loc) · 415 Bytes

Profiling the TUI

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