analyze_memory
Analyze current memory usage. Provides breakdown by category (textures, meshes, audio, etc.) and optimization suggestions.
分類: 性能
| 名前 | 型 | 必須 | 既定値 | 説明 |
|---|---|---|---|---|
include_asset_breakdown |
boolean | true |
Include detailed asset memory breakdown | |
include_top_consumers |
boolean | true |
List top memory consuming assets | |
top_count |
integer | 10 |
Number of top consumers to list | |
take_snapshot |
boolean | false |
Take a memory snapshot (requires Memory Profiler package) |
呼び出しの例
Section titled “呼び出しの例”必須の引数だけを入れています。ほかは必要に応じて足してください。
{ "name": "analyze_memory", "arguments": {}}SuperSave モードでは
Section titled “SuperSave モードでは”Unity を NANORA_MCP_SUPERSAVE=1 で起動したときは、メタツール execute から {"tool": "analyze_memory", "args": { … }} の形で呼びます。SuperSave モードを参照。
Assets/NanoraUnityMCP/Editor/Tools/AnalyzeMemoryTool.cs(版 1.2.1)から生成しています。説明文はツール定義のまま(英語)です。AI クライアントは tools/list で同じスキーマを受け取ります。