agent/codex/perf/commands/perf.md
Snider 466fe9f5a6 feat(codex): mirror claude plugins and ethics modal
Summary:\n- added Codex marketplace registry plus awareness/ethics/guardrails sub-plugins\n- mirrored Claude plugin commands/scripts/hooks into codex api/ci/code/collect/coolify/core/issue/perf/qa/review/verify\n- embedded Axioms of Life ethics modal, guardrails, and kernel files under codex/ethics\n- added Codex parity report, improvements list, and MCP integration plan\n- extended Gemini MCP tools and docs for Codex awareness
2026-02-05 20:13:01 +00:00

59 lines
1.1 KiB
Markdown

---
name: perf
description: Performance profiling helpers for Go and PHP.
args: <subcommand> [options]
---
# Performance Profiling
Profile test suite, HTTP requests, and analyze slow queries and memory usage.
## Subcommands
- `test`: Profile the test suite.
- `request <url>`: Profile an HTTP request.
- `query <query>`: Analyze a slow query (requires MySQL client and credentials).
- `memory [script_path]`: Analyze memory usage.
## Usage
```
/core:perf test
/core:perf request /api/users
/core:perf query "SELECT * FROM users WHERE email = 'test@example.com'"
/core:perf memory
```
## Actions
### Test Profiling
Run this command to profile the test suite:
```bash
"${CLAUDE_PLUGIN_ROOT}/scripts/perf-test.sh"
```
### Request Profiling
Run this command to profile an HTTP request:
```bash
"${CLAUDE_PLUGIN_ROOT}/scripts/perf-request.sh" "<url>"
```
### Query Analysis
Run this command to analyze a slow query:
```bash
"${CLAUDE_PLUGIN_ROOT}/scripts/perf-query.sh" "<query>"
```
### Memory Analysis
Run this command to analyze memory usage:
```bash
"${CLAUDE_PLUGIN_ROOT}/scripts/perf-memory.sh" "<script_path>"
```