Performance Profiler
Application performance profiling skill using Node.js built-in APIs.
Features
| Action | Command | Description |
|---|---|---|
| Snapshot | --snapshot |
Capture current process performance snapshot |
| Benchmark | --benchmark <command> [--runs N] |
Run a command N times, measure timing stats |
| Memory | --memory |
Detailed memory analysis with growth trend |
| Startup | --startup <command> |
Measure cold startup time of a command |
| Compare | --compare <file1> <file2> |
Compare two saved snapshot JSON files |
| Profile | --profile <file.js> [--duration <sec>] |
Profile a Node.js script execution |
| Report | --report [--output <file>] |
Generate comprehensive performance report |
| (default) | (no flags) | Same as --snapshot |
Output
- All timing in milliseconds or seconds as appropriate
- Memory sizes in human-readable format (MB/GB)
- Benchmark statistics include avg, min, max, and standard deviation
- Snapshot comparison shows absolute and percentage deltas