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

Method getHeapStatistics

lib/internal/worker.js:556–565  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

554 }
555
556 getHeapStatistics() {
557 const taker = this[kHandle]?.getHeapStatistics();
558
559 return new Promise((resolve, reject) => {
560 if (!taker) return reject(new ERR_WORKER_NOT_RUNNING());
561 taker.ondone = (handle) => {
562 resolve(handle);
563 };
564 });
565 }
566
567 cpuUsage(prev) {
568 if (prev) {

Calls 2

rejectFunction · 0.50
resolveFunction · 0.50

Tested by

no test coverage detected