Skip to content

profile_cpu

Profile CPU performance using Unity’s ProfilerRecorder API. Measures execution time of specific markers or system areas.

Category: Performance

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

The arguments below are the required ones; add the optional ones you need.

{
"name": "profile_cpu",
"arguments": {}
}

When Unity runs with NANORA_MCP_SUPERSAVE=1, call it through the execute meta tool: {"tool": "profile_cpu", "args": { … }}. See SuperSave mode.

Generated from Assets/NanoraUnityMCP/Editor/Tools/ProfileCpuTool.cs (version 1.2.1). The client receives the same schema from tools/list.