Files
node/test/parallel
Trevor Norris 9460f2cd83 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
Backport-PR-URL: https://github.com/nodejs/node/pull/37163
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>
2021-04-06 15:53:38 -04:00
..
2020-06-18 08:06:34 -07:00
2020-12-08 13:42:23 +00:00
2020-12-08 13:42:23 +00:00
2020-01-03 01:44:54 +01:00
2020-12-08 13:42:23 +00:00
2020-12-08 13:42:23 +00:00
2020-12-08 13:42:23 +00:00
2020-12-08 13:42:23 +00:00
2020-12-08 13:42:23 +00:00
2020-12-08 13:42:23 +00:00
2020-12-08 13:42:23 +00:00
2020-03-30 10:18:58 +02:00
2020-12-08 13:42:23 +00:00
2020-12-08 13:42:23 +00:00
2020-12-08 13:42:23 +00:00
2020-06-30 09:34:24 -07:00
2020-12-08 13:42:23 +00:00
2020-12-08 13:42:23 +00:00
2019-11-13 17:04:22 +00:00
2020-01-03 01:44:54 +01:00
2020-12-08 13:42:23 +00:00
2020-12-08 13:42:23 +00:00
2020-12-08 13:42:23 +00:00
2020-12-08 13:42:23 +00:00
2020-07-16 17:08:56 -04:00
2020-12-08 13:42:23 +00:00
2019-12-25 12:24:42 +01:00
2019-12-25 12:24:42 +01:00
2020-03-18 16:37:20 -07:00
2020-02-09 13:36:39 +01:00
2020-04-07 16:30:14 +01:00
2020-04-07 16:30:14 +01:00
2020-03-19 10:56:45 +01:00