- Home /
Question by
Bovine · Dec 21, 2011 at 08:25 PM ·
performanceprofilinggarbage collectiongc.collect
Is there a way to tell what is being garbage collected?
Hi There
I've been doing some profiling and there's some garbage collection going on. Is there a way to determine what is being garbage collected so I can see where I need to pool objects/restructure?
Naturally I'm avoiding allocating on the fly - I can't say it's allocation free, but it's pretty good. I'd just appreciate a starting point without having to start digging...
Thanks
Bovine
Comment
Best Answer
Answer by Bovine · Dec 23, 2011 at 09:39 AM
Okay so it's not specific but it's just want I wanted - in the profiler you can see Memory and what each function is allocating, this is a great starting place and a good way to confirm that yes, there's nothing being allocated or no, you need to dive and start factoring out the allocations.
Hope that helps others.