atlas_profiler
Profiles code performance with Big-O analysis, identifies CPU/memory/IO hotspots, detects memory leaks, and generates optimization suggestions with benchmarks.
Instructions
Performance profiling and Big-O analysis. Analyzes time/space complexity, identifies CPU/memory/IO hotspots, detects memory leaks, and generates optimization suggestions with benchmark code.
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": {
"code": "<code>",
"language": "<language>"
},
"name": "atlas_profiler"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes | The code to profile | |
| filePath | No | Optional file path | |
| language | Yes | Programming language | |
| inputSizes | No | Input sizes for Big-O analysis | |
| analyzeTime | No | Analyze time complexity (default: true) | |
| constraints | No | Performance constraints | |
| detectLeaks | No | Detect memory leaks (default: true) | |
| analyzeSpace | No | Analyze space complexity (default: true) | |
| identifyHotspots | No | Identify performance hotspots (default: true) | |
| expectedInputSize | No | Expected input size | |
| generateBenchmark | No | Generate benchmark code |