grokkit/todo/queued/profile.md
Greg Gauthier 6e3a52728e
All checks were successful
CI / Test (push) Successful in 30s
CI / Lint (push) Successful in 26s
CI / Build (push) Successful in 20s
chore(todo): complete feature suggestions TODO and queue individual tasks
- Update CI workflow runner from ubuntu-latest to ubuntu-gitea for auto-complete-todo.
- Move 3-new-feature-suggestions.md to completed/.
- Create queued TODOs for testgen, changelog, and profile features.
2026-03-02 19:33:34 +00:00

18 lines
564 B
Markdown

# `grokkit profile`
**Description**: Run Go benchmarks/pprof, get AI-suggested performance optimizations.
**Benefits**:
- Tune CLI hotspots (e.g., API streaming, git subprocesses).
- Proactive perf improvements without manual profiling.
**High-level implementation**:
- `go test -bench=. -cpuprofile=prof.out ./cmd`.
- Parse pprof data (stdlib `pprof` or text), prompt Grok: "Optimize these hotspots."
- Suggest edits via `agent` or `edit --preview`.
**CLI example**:
```
grokkit profile ./cmd/agent.go
# Outputs: hotspots, suggestions, optional auto-fixes
```