Skip to main content
Glama

profiler-gc-alloc

Identify functions causing garbage collection allocations in Unity to reduce frame hitches by analyzing profiler data and call paths.

Instructions

Returns the top N functions with the highest GC (garbage collection) allocations in a profiler frame, including their call paths. GC allocations are a major source of frame hitches in Unity — use this to find and eliminate them.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
frameIndexNoFrame index to analyze. Use -1 for the latest available frame. Default: -1-1
threadIndexNoThread index. 0 = Main Thread. Default: 00
topNNoNumber of top entries to return. Default: 2020
minBytesNoMinimum GC allocation bytes to include. Filters out trivial allocations. Default: 00
maxDepthNoMaximum tree depth to scan. Default: 1515

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/butterlatte-zhang/unity-ai-bridge'

If you have feedback or need assistance with the MCP directory API, please join our Discord server