コンテンツにスキップ

profile_cpu

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

分類: 性能

名前 型 必須 既定値 説明
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

必須の引数だけを入れています。ほかは必要に応じて足してください。

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

Unity を NANORA_MCP_SUPERSAVE=1 で起動したときは、メタツール execute から {"tool": "profile_cpu", "args": { … }} の形で呼びます。SuperSave モードを参照。

Assets/NanoraUnityMCP/Editor/Tools/ProfileCpuTool.cs(版 1.2.1)から生成しています。説明文はツール定義のまま(英語)です。AI クライアントは tools/list で同じスキーマを受け取ります。