magento_performance_profile
Profile a Magento subsystem to identify performance bottlenecks by scanning plugins, observers, and collectors on critical paths, returning files sorted by complexity score.
Instructions
Profile a Magento subsystem for performance bottlenecks. Scans for all plugins, observers, and collectors registered on a critical path (e.g., checkout totals, order placement, product save). Returns files sorted by complexity score to identify likely performance hotspots.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| subsystem | Yes | Magento subsystem to profile. Examples: "checkout_totals", "order_place", "product_save", "cart_add", "customer_login", "catalog_reindex" | |
| threshold | No | Minimum complexity score to include in results (default: 0). Set higher (e.g., 5) to focus on complex files only. |