- Home /
How to see mono heap or garbage collected objects?
Does somebody know how to see the content of the mono heap in a unity game, or how to see what exactly gets collected when the garbage collector runs? (I know that the Unity profiler shows me what gets allocated.)
i was able to get a lot of infos about the allocated stuff, but especially after running my level longer than 5$$anonymous$$uts my mono heap size gets bigger and bigger. Of course, I could start fixing all allocations one by one, but I will not have the time to fix all and i like to concentrate on the most important problems. A detailed view on my heap after 5$$anonymous$$ running the game seems to me the best i'd like get now :/
I saw in another post, with [DllImport("mono")] static extern long mono_gc_get_used_size(); one can get the currently used heap size. This is probably what Unity calls for Profiler.Get$$anonymous$$onoUsedSize();
Does somebody know where that mono.dll is documented and if it brings other handy heap function?