[Mono-list] how to get processes' stats in mono(redhat9)?

Jonathan Pryor jonpryor at vt.edu
Fri Mar 10 07:23:07 EST 2006


On Fri, 2006-03-10 at 16:36 +0800, Li wrote:
> I'd like to get the process's stats,e.g. MEM%,CPU% and CPU_idle
> %,MEN_idle% in mono platform. Anybody could help me?
> Thank you very much!

There are no classes within Mono to obtain this information; thus,
you'll have to do so manually.

To do so, you can read the /proc filesystem directly,
e.g. /proc/PID/status contains some status information, or you can
P/Invoke into libgtop or some other library to obtain this information.

 - Jon




More information about the Mono-list mailing list