analyze_compiler_efficacy
Evaluate React Compiler or manual React.memo by tracking spurious renders and calculating an Invalidation Index to identify unstable prop references causing wasteful renders.
Instructions
Evaluates React Compiler or manual React.memo efficacy by tracking spurious renders. Calculates the Invalidation Index for each component to identify where unstable prop references trigger wasteful renders.
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": {
"profile_path": "<profile_path>"
},
"name": "analyze_compiler_efficacy"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| profile_path | Yes | Absolute path to the React DevTools Profiler export (.json) | |
| invalid_threshold | No | Minimum invalidation index threshold to report (default: 10) |