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.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"action": "<action>"
},
"name": "gsap_performance"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | No | Code to optimize (for optimize action) | |
| action | Yes | Performance action to generate | |
| options | No |