How to get the load value to balance routers on same host?

There is getResourceUsage function in the mediasoup. But I have no idea how to use this return values…
Is there any way to balance routers on same host? For example, using cpu core usage…
Thanks in advance!

There are docs about those numbers and also NPM libs to get CPU usage given the PID of a process (BTW worker.pid). You should you your homeworks.