nodejs_profile
Profile Node.js application performance using the built-in Node.js profiler. Generate CPU and heap profiles to identify bottlenecks.
Instructions
Profile Node.js application performance using built-in Node.js profiler
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "nodejs_profile"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| args | No | Additional arguments | |
| script | No | Script to profile (default: start) | |
| timeout | No | Command timeout in milliseconds | |
| duration | No | Profile duration in seconds | |
| directory | No | Working directory | |
| outputDir | No | Output directory for profile files | |
| cpuProfile | No | Generate CPU profile | |
| heapProfile | No | Generate heap profile |