MCPcopy Index your code
hub / github.com/nodejs/node / getUsages

Function getUsages

test/parallel/test-process-threadCpuUsage-worker-threads.js:33–35  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

31}
32
33function getUsages() {
34 return { process: process.cpuUsage(), thread: process.threadCpuUsage() };
35}
36
37function validateResults(results) {
38 // This test should have checked that the CPU usage of each thread is greater

Calls 2

threadCpuUsageMethod · 0.80
cpuUsageMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…