profiler-get-memory-stats
Installation
SKILL.md
Profiler / Get Memory Stats
Reads UnityEngine.Profiling.Profiler scalar memory counters and converts each from bytes to megabytes (/1048576f).
Fields
TotalReservedMemoryMB—GetTotalReservedMemoryLong().TotalAllocatedMemoryMB—GetTotalAllocatedMemoryLong().TotalUnusedReservedMemoryMB—GetTotalUnusedReservedMemoryLong().MonoHeapSizeMB—GetMonoHeapSizeLong().MonoUsedSizeMB—GetMonoUsedSizeLong().TempAllocatorSizeMB—GetTempAllocatorSize().GraphicsMemoryMB—GetAllocatedMemoryForGraphicsDriver().MaxUsedMemoryMB—maxUsedMemory.UsedHeapSizeMB—usedHeapSizeLong.
Behavior
Uses only built-in Unity APIs (UnityEngine.Profiling.Profiler). No external Unity package is required.