Is there a way to tell how loaded a particular Worker is?

I want a simple number in arbitrary units, but uniform in the sense that of any two workers the one with a higher metric is more probably to start lagging/drop frames/introduce artifacts/crash, simply put, demonstrate lack of sufficient CPU resources.

How do i pull or calculate such a number?


No magic. That’s your task :slight_smile:

We provide this:

Don’t ask me please what those fields mean.

You also have the and can use other NPM libs to get process resource usage given a PID.

stime and utime are clearly “sys” and “usr” time which would print for the worker process if it was to terminate at that point. which is good enough. thanks!

1 Like