I'm developing a C# Mono project (in Unity3D) which is using an older version of the garbage collector. Memory leaks have been an unpleasant wake-up call for me.
Because of this I am optimizing as much as I possibly can: avoiding Linq like the plague, recycling collections, etc.
What I would like to know is - is there a tool that will let me know all of the places I am instantiating new objects?
I've been able to grep for things like new List
which is fine, but if I want to expand my search to new
I also get value types, which I want to ignore.
I'm using MonoDevelop, Visual Studio 2013 and Resharper.