[Mono-dev] Obtain the available memory

Joannes Vermorel joannes at vermorel.com
Thu Aug 25 05:10:36 EDT 2005


I have seen that the PerformanceCounter class is yet unimplemented in mono,
yet, I would like to emulate with mono, the following 

PerformanceCounter counter =
	new PerformanceCounter("Memory", "Available Bytes");

There is the possibility to resort to command-line and to parse the output
of the "top -b" command, but I feel that this option is very poor because
the "top" output is not standardised at all (also this solution may yield
very poor performance).

Somehow mono do know already (I guess) such information at least for the GC

What would you suggest to get such information on mono?

Thanks in advance,

More information about the Mono-devel-list mailing list