Rust Resource usage by running processes on Linux


#1

Hi,

How can I monitor the resources (cpu percentage, memory usage or bandwidth usage) of the processes on the Linux system? Are there any crates which can do this?

Please let me know,
Thank you and regards,
Sanjay


#2

Take a look at sysinfo which is used by process-viewer


#3

Any crates or methods for processes under Windows?


#4

There may or may not be crates that provide the abstractions you need, but you can always work with winapi directly.


#5

Yep. I guess so.

Thanks


#6

Once the new winapi version will be released. I’ll be able to end the porting of sysinfo on windows as well.