GSAP Performance Profiler
gsap_performanceGenerate performance measurement and optimization code for GSAP animations: monitor FPS, memory, or reflows; optimize code by annotating issues; profile creation and render timings.
Instructions
Generate performance measurement and optimization code for GSAP animations. Three modes: monitor (FPS counter, memory logger, or reflow detector — provide options.metrics), optimize (analyze existing code and annotate performance issues inline — requires code param), profile (measure animation creation time and per-frame render timings). Use monitor and profile during development only.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | No | Code to optimize (for optimize action) | |
| action | Yes | Performance action to generate | |
| options | No |