I want to check the memory used by Unity process or free memory available, because I've run into Unity's dead end with memory management so I need to know when I run low on memory from within the editor (not player!). Any idea how to do that? I've tried System.Diagnostics.Process.GetCurrentProcess and I get System.InvalidOperationException: Process has exited, so the requested information is not available.
this is a request for more details. Honostly i can't imagine you needing to see free / used memory unless one of these two things are occuring: A.) Your doing mobile B.) Your doing something really wrong. In Pro, you can see a profiler which shows memory usage on some things, but i find its inaccurate a lot. On iOS you can build and see how memory is allocated with XCode's tools. Mysteriously, i've not had a lot of issues with memory on android. There's so many reasons why you could be hitting a wall on memory that i just can't go on without knowing anything else and a great many of these little problems come from misuse of textures / materials, audio, and meshes.
See my other thread: http://forum.unity3d.com/threads/14...roject-load-out-of-memory-on-importing-assets - I need to check it in Editor mode (as said above), because I need to prevent Unity from importing all assets in one run just to stop it crashing.
The profiler has memory usage. Free/Used, Unless I'm misunderstanding and you mean the memory usage of Unity itself.