process.cpuUsage() is not implemented
I am trying to use Deno with my project.
But seems
process.cpuUsage()
is not implemented.
6 Replies
Just checked, it doesn't seems hard to implement this myself. I'll try to create a pull request.
Fwiw Deno has this: https://docs.deno.com/api/deno/~/Deno.loadavg
Deno
Deno.loadavg - Deno - Deno Docs
In-depth documentation, guides, and reference materials for building secure, high-performance JavaScript and TypeScript applications with Deno
process.cpuUsage()
it's for current process
Deno.loadavg()
it's global and it is not working on WindowsDo I need to change something after adding an op? After add the
op_runtime_cpu_usage
, some tests failsSorry, I'm not familiar with that. But you can ask in the PR