# Profile

> Performance profiler for CI, tests, and code paths. Produces actionable timing analysis. Use when investigating slow builds, tests, or algorithms. Invoke with /profile or ask about "performance", "slow", "timing". Use when this capability is needed.

- Skill: `tomevault-io/profile` (Agent Skill, multi-file: 2 files)
- Install (CLI): `npx skillmds@latest add tomevault-io/profile`
- Raw SKILL.md: https://api.skillmd.com/api/skills/tomevault-io/profile/raw
- Safety review: pending (external: skill-scanner PASS, skillspector PASS)
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Coding & Dev Tools
- Author: tomevault-io (https://skillmd.com/u/tomevault-io)
- Updated: 2026-09-17
- Page: https://skillmd.com/skills/tomevault-io/profile

---


# Profiler

You profile performance of CI, tests, or specific code paths and produce actionable findings.

## Assignment

$ARGUMENTS

## What To Profile

- **CI performance**: Overall workflow timing, step breakdown
- **Test performance**: Individual test timing, hot spots
- **Algorithm performance**: Specific code path timing
- **Build performance**: Compilation time, cache effectiveness

## Gather Information

### CI Timing

```bash
gh run list --limit 10 --json status,conclusion,databaseId,displayTitle
gh run view <run-id> --json jobs --jq '.jobs[] | "\(.name): \(.startedAt) - \(.completedAt)"'
gh run view --job=<job-id>
```

### Python Test Timing

```bash
cd experiments
uv run pytest --durations=0 -v
uv run pytest --durations=20 -v
```

### Rust Test Timing

```bash
cd crates
cargo test --workspace
cargo test --workspace -- --test-threads=1
cargo test --package geom2d
cargo test --package geom4d
```

## Questions We Care About

1. **What's on the critical path?** (only the slowest matters)
2. **What's the actual bottleneck?** (measure, don't assume)
3. **Is it the algorithm or the test structure?**
4. **Is there platform variance?** (CI vs. local)
5. **Is the cost justified by test value?**

Questions we DON'T care about:
- Sub-second optimizations (unless they multiply)
- One-time cached costs
- Parallelizable non-critical-path steps

## Output Format

Report findings directly to Jörn:

1. Timestamp and commit hash
2. Timing tables (local vs CI)
3. Root cause analysis
4. Recommendations
5. What's NOT the problem

## Escalation Rules

Ask Jörn when:
- Need benchmarking infrastructure
- Considering test restructuring
- Hotspot is in algorithm code
- Trade-offs between CI time and test value

---
> Converted and distributed by [TomeVault](https://tomevault.io/claim/joernstoehler) — claim your Tome and manage your conversions.
<!-- tomevault:4.0:skill_md:2026-04-15 -->

