GC.Alloc means that during the run time your code (or something in the API) allocates this much of the managed memory.
This can cause problems later (that's why it has the row in the profiler), because when the Garbage Collector runs, it tends to slow down or even hang your game.
์ฌ๊ธด ๋ GC Allocated The amount of memory allocated per frame on the GC heap ๋ผ๊ณ ๋์์๋ค -_- GC heap ๊ณต๊ฐ์ด ๋ฐ๋ก ์กด์ฌํ๋ค๋ ๊ฑด๊ฐ?
GC.Alloc means that during the run time your code (or something in the API) allocates this much of the managed memory. This can cause problems later (that's why it has the row in the profiler), because when the Garbage Collector runs, it tends to slow down or even hang your game.
https://docs.unity3d.com/Manual/ProfilerMemory.html
์ฌ๊ธด ๋ GC Allocated The amount of memory allocated per frame on the GC heap ๋ผ๊ณ ๋์์๋ค -_- GC heap ๊ณต๊ฐ์ด ๋ฐ๋ก ์กด์ฌํ๋ค๋ ๊ฑด๊ฐ?
https://forum.unity.com/threads/definition-of-gc-alloc-in-profiler.557896/
https://docs.unity3d.com/Manual/BestPracticeUnderstandingPerformanceInUnity4-1.html
์ด๊ฑฐ๋ ๋์์ด ๋ ๋ ค๋
๋ฉ๋ด์ผ ์ฝ์ด๋ณด๋ฉด gc๊ฐ ๋จผ์ ์ผ์ ํ์ ํ ๋น ๋ฐ๋๊ฑฐ๊ณ ๊ฐ ๋ฉ๋ชจ๋ฆฌ๋ณ gc.alloc ์ ํ์ด ํ ๋น๋๊ฑฐ ์์์ ์ฐจ์งํ๋ ๋ฉ๋ชจ๋ฆฌ ์ ์ธ๊ฑฐ๊ฐ์๋ฐ
์ด๋์ ๊ทธ๋ฐ ๋ด์ฉ์ด ๋์? ๋งํฌ ์ข. ๋ด๊ฐ ๋ณด๊ธฐ์ ์ ๋ํฐ๊ฐ ๋งํ๋ GC heap ์ด ๊ฑ managed heap ์ธ ๊ฒ ๊ฐ์๋ฐ. 1์ธ๋ GC๋ผ์ managed heap ๋ค ํ๊ณ ...
Total GC Allocated The amount of memory used by the GC heap GC Allocated The amount of memory allocated per frame on the GC heap
gc heap์ด ๋ฐ๋ก ์์๋ฆฌ๋ ์์ผ๋๊น gc๊ฐ ๋ฏธ๋ฆฌ ํ ๋น๋ฐ์ heap์ด ์๋๊น ์๊ฐํ๊ฑฐ์
์์ฑ์ ์ด์ ๋๊ธ ์ญ๋ณด๋๊น ๊ฐ๋น์ง์ปฌ๋ ํฐ ์๋ฆฌ๋ฅผ ์๊ณ ๋ ์๋์ง ์์ฌ์ด ๋ฌ
๋ฉ๋ด์ผ ๋ณด๋๊น ๊ฐ๋น์ง์ปฌ๋ ํฐํ์ ํ ๋นํ๋๊ฑฐ ๋ง๋๊ฒ๊ฐ์๋ฐ?
gc alloc์ unity profiler์์ ๋ณผ ์ ์๋๋ฐ, Heap ์์ญ์ ๋ฉ๋ชจ๋ฆฌ๋ฅผ ํ ๋น๋ฐ์ ๋ ์ ๊ฒ ์๊น. ๊ฑ new SomeClass(); ํ๋ฉด ์๊น ๊ทธ๋ฅ Unity Profiler์์ ๊ทธ๋ ๊ฒ ๋ณด์ฌ์ฃผ๋๊ฑฐ์ ๊ฐ๋น์ง๋ฅผ ์ง์ฐ๋๊ฑฐ๋ ๋ค๋ฆ