soyuka / pidusage

Cross-platform process cpu % and memory usage of a PID
MIT License
512 stars 55 forks source link

Support NetBSD via its Linux-compatible procfs. #33

Closed yazshel closed 7 years ago

yazshel commented 7 years ago

Hi, All that is needed for pidusage to support NetBSD is to map it to the 'proc' handler. NetBSD has a procfs that is fully compatible with the Linux format, including /proc/uptime and /proc/<pid>/stat with the same format that Linux has. So it all just works!

It'd be great to get this merged please so that other tools using pidusage (such as pm2) can get CPU and memory info on NetBSD.

Cheers,

Timshel

image

soyuka commented 7 years ago

Nice thanks!

soyuka commented 7 years ago

Landed in 1.1.1