Rust Resource usage by running processes on Linux

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

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

Any crates or methods for processes under Windows?

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

1 Like

Yep. I guess so.

Thanks

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