slop_profile
Profiles one run of a specified port with cProfile in a subprocess, returning the top functions by cumulative time to identify performance bottlenecks.
Instructions
Profile one run of a port with cProfile in a subprocess and return the top functions by cumulative time.
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": {
"port": "<port>"
},
"name": "slop_profile"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| top | No | How many functions to return, 1 to 50. Default 15. | |
| args | No | Command-line arguments for the port: up to 10 strings of up to 200 characters. The first may not be 'serve'. Default: the first recorded or built-in case. | |
| port | Yes | Port name, as listed by slop_ports (a folder under the ports root with __main__.py). |