From 8398db0370ed6b12920a907602ea0d169649d55d Mon Sep 17 00:00:00 2001 From: Chris Duncan Date: Wed, 20 Nov 2024 21:23:51 -0800 Subject: [PATCH] Add small log statement for tracking pool performance. --- src/lib/pool.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/lib/pool.ts b/src/lib/pool.ts index b153485..9651205 100644 --- a/src/lib/pool.ts +++ b/src/lib/pool.ts @@ -55,6 +55,9 @@ export class Pool { #report (thread: Thread, result: any) { this.#results.push(result) + if (this.#results.length % 1000 === 0) { + console.log(`pool results: ${this.#results.length}`) + } thread.isBusy = false if (this.#queue.length > 0) { this.#assign(thread) -- 2.34.1