lib: add diagnostics channel to process and worker
Add diagnostics channel to process and worker, so we can collect the process or worker info. Such as execPath, code, pid, threadId, performance info of worker threads and snapshot of worker threads, and so on.
-
make -j4 test
(UNIX), orvcbuild test
(Windows) passes -
tests and/or benchmarks are included -
documentation is changed or added -
commit message follows commit guidelines