test: harden the tick sampling logic · nodejs/node@73fec7c · GitHub
Skip to content

Commit 73fec7c

Browse files
HarshithaKPaddaleax
authored andcommitted
test: harden the tick sampling logic
Under peculiar system load conditions, the profiler thread does not get enough CPU slices to perform the sampling. Improve the interaction between worker and parent thread by performing a large disc read, which is a better blend of CPU and I/O bound work, than earlier versions. This produces x10 more samples than the existing one, in 10 iterations, as opposed to 1024. Also capture worker error situations to improve debugging Refs: #26401 (comment) PR-URL: #32190 Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: James M Snell <jasnell@gmail.com>
1 parent 2ee684a commit 73fec7c

1 file changed

Lines changed: 6 additions & 5 deletions

File tree

test/sequential/test-worker-prof.js

Lines changed: 6 additions & 5 deletions

0 commit comments

Comments
 (0)