Files
node/doc/api
Trevor Norris eec7542781 worker: add eventLoopUtilization()
Allow calling eventLoopUtilization() directly on a worker thread:

    const worker = new Worker('./foo.js');
    const elu = worker.performance.eventLoopUtilization();
    setTimeout(() => {
      worker.performance.eventLoopUtilization(elu);
    }, 10);

Add a new performance object on the Worker instance that will hopefully
one day hold all the other performance metrics, such as nodeTiming.

Include benchmarks and tests.

PR-URL: https://github.com/nodejs/node/pull/35664
Reviewed-By: Juan José Arboleda <soyjuanarbol@gmail.com>
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Gerhard Stöbich <deb2001-github@yahoo.de>
Reviewed-By: James M Snell <jasnell@gmail.com>

Backport-PR-URL: https://github.com/nodejs/node/pull/37165
2021-03-16 00:04:09 +00:00
..
2020-09-22 23:48:35 +02:00
2020-07-14 12:13:16 -07:00
2020-09-28 10:59:39 +02:00
2020-09-22 23:48:28 +02:00
2020-09-22 23:48:28 +02:00
2020-11-16 11:58:00 -05:00
2020-09-22 01:09:54 +02:00
2020-11-16 11:58:05 -05:00
2020-09-28 10:59:39 +02:00
2020-09-22 23:48:35 +02:00
2020-09-22 23:48:35 +02:00
2020-09-22 01:09:54 +02:00
2020-11-16 11:58:00 -05:00
2020-09-22 01:09:54 +02:00
2020-11-16 11:57:50 -05:00