1
\$\begingroup\$

I have an idea of what this button does, but I cannot find any specific information in the documentation.

What information does this button add to the profiling data? How can I see this extra information?

Screenshot of Allocation Callstacks button in Unity profiler, in a checked state

\$\endgroup\$
0
\$\begingroup\$

Consulting the Unity documentation on the CPU Profiling tools:

The recorded memory allocation samples appear in the Profiler window in bright red.

Unity Profiler CPU timeline screenshot showing red boxes for allocations

...If the callstack was recorded for the selected allocation sample, the associated callstack symbols are resolved and displayed as well:

Screenshot of the Unity Profiler showing callstack for an allocation

So: when you have "Allocation Callstacks" enabled, you can click on the red boxes representing managed memory allocations to see what code caused memory to be allocated, and where it was called from.

\$\endgroup\$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.