run_profiled_player
Launches a built Unity player with GPU profiling, captures frame metrics (FPS, draw calls, memory, GC) for a specified number of frames, and saves performance data to a JSON file.
Instructions
Laufzeit-Profiling SCHRITT 2 (Job): startet den von profile_play gebauten Player im Fenster (mit GPU), misst N Frames (Frame-Zeit/FPS/Draw Calls/Speicher/GC) und schreibt das Perf-JSON; der Player beendet sich selbst. Danach get_profile_result(perf_file).
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": {
"exe_path": "<exe_path>",
"perf_file": "<perf_file>"
},
"name": "run_profiled_player"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| exe_path | Yes | ||
| perf_file | Yes | ||
| frames | No | ||
| width | No | ||
| height | No |