how to know CPU or RAM usage by a process in unity3d

Hello everybody over there,

In my project i launched vlc video player (using process in csharp) with command line argument of what video i want to play. Now my playback start that time i want to know either how much CPU using that vlc player or RAM usage. Can anybody tell to me how to do this.

Thanks.

can anyone please?..

http://lmgtfy.com/?q=c%23+cpu+ram+usage

Thank u very much exiguous, But before posting my question i googled lots of. Also applied downloaded code in my project. But i dont know why unity always return 0% cpu and ram usage. Its work fine in .net but not in unity.

and why dont you include this “essential” information in your post? if anyone knows this surely would be helpfull.

exiguous i m really very sorry, i dint mention that i googled it in my post. Now if anybody know it then please give me solution why its happening.

Pleas show us the code you are using.

But for now: Unity does not use .Net but Mono, maybe there are some differences.