Skip to main content
Glama

profiler-frame-hierarchy

Analyze Unity performance by retrieving detailed profiler call hierarchy trees for specific frames to identify bottlenecks and optimize execution.

Instructions

Retrieves the full profiler call hierarchy tree for a specific frame. Returns function names, total time, self time, call counts, and GC allocations in a tree structure — equivalent to the Unity Profiler Hierarchy view. Use this to analyze detailed per-function performance.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
frameIndexNoFrame index to analyze. Use -1 for the latest available frame. Default: -1-1
threadIndexNoThread index. 0 = Main Thread, 1 = Render Thread, etc. Default: 00
maxDepthNoMaximum depth of the call tree to return. Use smaller values for overview, larger values for detailed analysis. Default: 55
minTotalMsNoMinimum total time (ms) to include a node. Filters out insignificant calls. Default: 0.10.100000001

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