Skip to main content
Glama

profiler-hotpath

Identify performance bottlenecks in Unity by analyzing the most expensive functions in profiler frames, helping developers optimize code execution.

Instructions

Returns the top N most expensive functions in a profiler frame, sorted by self time or total time. Useful for quickly identifying performance bottlenecks without reading the full hierarchy.

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
sortByNoSort by 'selfTime' or 'totalTime'. Default: selfTime Values: [TotalTime, SelfTime]selfTime
maxDepthNoMaximum tree depth to scan. Deeper = more complete but slower. 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