Receber por email
← Voltar para o catálogo

perf-profile

Identifies performance bottlenecks, measures against budgets, and generates prioritized optimization recommendations. Use when investigating slow performance or when the user mentions performance profiling, bottleneck, or optimization.

67estrelas
Atualizado há 5 meses

Ver no GitHub ↗ Licença: MIT

Como adicionar

/plugin marketplace add tranhieutt/software_development_department

O comando exato pode variar conforme o repositório. Confira o README no GitHub.

Para o autor da skill

Cole no README do seu repo

Mostra que sua skill está catalogada na Skillteca, gera backlink e tráfego rastreável.

[![Skillteca](https://www.skillteca.com.br/api/badge/perf-profile-tranhieutt/svg)](https://www.skillteca.com.br/skills/perf-profile-tranhieutt)
#ai

Skills relacionadas

Ver todas de Automação →

Alerta por categoria

Receba novas skills de Automação toda segunda

1 email curto, só com as skills novas de Automação. 4 minutos de leitura, sem spam, cancela com 1 clique.

Você confirma o email no primeiro envio. Sem spam. Cancela com 1 clique.

Ler descrição completa

When this skill is invoked:

  1. Determine scope from the argument:
  2. If a system name: focus profiling on that specific system
  3. If full: run a comprehensive profile across all systems
  1. Read performance budgets — Check for existing performance targets in design docs or CLAUDE.md:
  2. Target FPS (e.g., 60fps = 16.67ms frame budget)
  3. Memory budget (total and per-system)
  4. Load time targets
  5. Draw call budgets
  6. Network bandwidth limits (if multiplayer)
  1. Analyze the codebase for common performance issues:

CPU Profiling Targets:

  • _process() / Update() / Tick() functions — list all and estimate cost
  • Nested loops over large collections
  • String operations in hot paths
  • Allocation patterns in per-frame code
  • Unoptimized search/sort over data entities
  • Expensive physics queries (raycasts, overlaps) every frame

Memory Profiling Targets:

  • Large data structures and their growth patterns
  • Texture/asset memory footprint estimates
  • Object pool vs instantiate/destroy patterns
  • Leaked references (objects that should be freed but aren't)
  • Cache sizes and eviction policies

Rendering Targets (if applicable):

  • Draw call estimates
  • Overdraw from overlapping transparent objects
  • Shader complexity
  • Unoptimized particle systems
  • Missing LODs or occlusion culling

I/O Targets:

  • Save/load performance
  • Asset loading patterns (sync vs async)
  • Network message frequency and size
  1. Generate the profiling report:

```markdown ## Performance Profile: [System or Full] Generated: [Date]

### Performance Budgets | Metric | Budget | Estimated Current | Status | |--------|--------|-------------------|--------| | Frame time | [16.67ms] | [estimate] | [OK/WARNING/OVER] | | Memory | [target] | [estimate] | [OK/WARNING/OVER] | | Load time | [target] | [estimate] | [OK/WARNING/OVER] | | Draw calls | [target] | [estimate] | [OK/WARNING/OVER] |

### Hotspots Identified | # | Location | Issue | Estimated Impact | Fix Effort | |---|----------|-------|------------------|------------| | 1 | [file:line] | [description] | [High/Med/Low] | [S/M/L] | | 2 | [file:line] | [description] | [High/Med/Low] | [S/M/L] |

### Optimization Recommendations (Priority Order)

  1. [Title] — [Description of the optimization]
  2. Location: [file:line]
  3. Expected gain: [estimate]
  4. Risk: [Low/Med/High]
  5. Approach: [How to implement]

### Quick Wins (< 1 hour each)

  • [Simple optimization 1]
  • [Simple optimization 2]

### Requires Investigation

  • [Area that needs actual runtime profiling to determine impact]

```

  1. Output the report with a summary: top 3 hotspots, estimated headroom vs budget, and recommended next action.

Rules

  • Never optimize without measuring first — gut feelings about performance are unreliable
  • Recommendations must include estimated impact — "make it faster" is not actionable
  • Profile on target hardware, not just development machines
  • Distinguish between CPU-bound, GPU-bound, and I/O-bound bottlenecks
  • Consider worst-case scenarios (maximum entities, lowest spec hardware, worst network conditions)
  • Static analysis (this skill) identifies candidates; runtime profiling confirms

Protocol

  • Question: Reads system name or full from argument
  • Options: Skip
  • Decision: Skip
  • Draft: Profile report shown in conversation only
  • Approval: Skip — read-only; no files written by default

Output

Deliver exactly:

  • Top 3 hotspots — system, estimated impact, and recommended fix
  • Budget headroom — actual vs target for each metric in technical-preferences.md
  • Optimization priority list — ranked by impact/effort ratio
  • Next action: PROFILE CONFIRMED (static analysis sufficient) or RUNTIME PROFILING NEEDED (list what to measure)
Compartilhar X LinkedIn