Skip to content
VS Code

Metal GPU Trace for VS Code

io.github.partprogramming09/metal-gpu-trace

Measure Wine and macOS programs' GPU use on Apple silicon with Metal System Trace

client:VS Code transport:stdio runtime:pypi

Install Metal GPU Trace in VS Code

.vscode/mcp.json

{
  "inputs": [
    {
      "type": "promptString",
      "id": "metal-trace-out",
      "description": "METAL_TRACE_OUT",
      "password": true
    },
    {
      "type": "promptString",
      "id": "metal-trace-wine",
      "description": "METAL_TRACE_WINE",
      "password": true
    }
  ],
  "servers": {
    "metal-gpu-trace": {
      "type": "stdio",
      "command": "uvx",
      "args": [
        "metal-gpu-trace"
      ],
      "env": {
        "METAL_TRACE_OUT": "${input:metal-trace-out}",
        "METAL_TRACE_WINE": "${input:metal-trace-wine}"
      }
    }
  }
}

VS Code prompts for each input the first time the server starts, so no secret is written to the file. VS Code docs

Metal GPU Trace in other clients