Hi there The game I am currently working on is using about 100mb of memory. I need to get a breakdown of what is using the memory. I tried the profiler in Unity but it didn't seem to give a very comprehensive report. We are using an performance measuring script which uses these methods: System.GC.GetTotalMemory() Profiler.usedHeapSize Profiler.GetMonoUsedSize() Profiler.GetMonoHeapSize() Which give an overview of memory usage, but I wonder if there is a tool or functions that will allow me to see memory usage at a much finer grain. Thanks
Hi, I'm still looking for some help on this. I wrote a small script to visit every object recursively in the scene heirarchy and print out its size, but I dont know how to get an accurate estimate of memory usage for a GameObject. I tried faking it by manually writing specific memory estimation fuctions for each object using sizeof() and array counts, but it is tedious and error prone. I can use Profiler.GetRuntimeMemorySize() for things like textures and meshes but that's not going to help me. I really need a breakdown of how mono is using the memory. Cheers