profile
Run commands under Nsight Systems or Nsight Compute to capture GPU kernel timing and metrics, then return the report path with a parsed kernel summary.
Instructions
Run a command under Nsight Systems (tool='nsys') or Nsight Compute (tool='ncu') and return the path of the report plus a parsed kernel summary. nsys gives the per-kernel time breakdown; ncu gives per-kernel metrics (achieved occupancy, DRAM throughput, SM throughput) and is much slower, so use ncu_kernel_regex to target one kernel.
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": {
"cmd": "<cmd>"
},
"name": "profile"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cmd | Yes | ||
| cwd | No | ||
| tool | No | nsys | |
| out_dir | No | results/profiles | |
| timeout | No | ||
| ncu_kernel_regex | No | ||
| ncu_launch_count | No |