]> zoso.dev Git - libnemo.git/commitdiff
Add small log statement for tracking pool performance.
authorChris Duncan <chris@zoso.dev>
Thu, 21 Nov 2024 05:23:51 +0000 (21:23 -0800)
committerChris Duncan <chris@zoso.dev>
Thu, 21 Nov 2024 05:23:51 +0000 (21:23 -0800)
src/lib/pool.ts

index b153485639335e1c445bb26bcc428c015d85f12c..9651205b000fb8852f1449b770b34286aab0d406 100644 (file)
@@ -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)