performance-profiling
Profile likely hotspots and turn performance work into measurable next steps.
Performance Profiling
Trigger Signals
- the task is slow, resource-heavy, or performance-sensitive
Inspect First
- hotspot code paths, timing data, memory cues, and benchmark surfaces
Workflow
- identify the slow path and measurement surface
- isolate likely bottlenecks
- define low-risk experiments and verification
- report findings and next action
Output Contract
- hotspot summary
- likely bottlenecks
- measurement or benchmark plan
- recommended next step
Failure Modes
- no measurable baseline exists
Escalation
- escalate when optimization risks correctness or public contracts