feat: add ELU tasks accounting
[poolifier.git] / src / pools / worker.ts
index ec75c819cfe9be8a5e56dac0e0c2bdad4cfe7d66..d10a27c9171c978ce44e7b9f6a1d2a9fb66131db 100644 (file)
@@ -1,3 +1,4 @@
+import type { EventLoopUtilization } from 'node:perf_hooks'
 import type { CircularArray } from '../circular-array'
 import type { Queue } from '../queue'
 
@@ -105,6 +106,10 @@ export interface TasksUsage {
    * Number of tasks errored.
    */
   error: number
+  /**
+   * Event loop utilization.
+   */
+  elu: EventLoopUtilization | undefined
 }
 
 /**