profile_cpu
Profile CPU performance using Unity’s ProfilerRecorder API. Measures execution time of specific markers or system areas.
Category: Performance
Parameters
Section titled “Parameters”| Name | Type | Required | Default | Description |
|---|---|---|---|---|
markers |
array | Profiler marker names to track (use ‘common’ for common markers) | ||
sample_count |
integer | 60 |
Number of frames to sample | |
include_gc |
boolean | true |
Include GC allocation tracking | |
show_system_stats |
boolean | true |
Show system-wide CPU statistics |
Example call
Section titled “Example call”The arguments below are the required ones; add the optional ones you need.
{ "name": "profile_cpu", "arguments": {}}In SuperSave mode
Section titled “In SuperSave mode”When Unity runs with NANORA_MCP_SUPERSAVE=1, call it through the execute meta tool: {"tool": "profile_cpu", "args": { … }}. See SuperSave mode.
Source
Section titled “Source”Generated from Assets/NanoraUnityMCP/Editor/Tools/ProfileCpuTool.cs (version 1.2.1). The client receives the same schema from tools/list.