diagnostics_channel: add threadpool work event - #65982
IlyasShabi wants to merge 3 commits into
Conversation
|
Review requested:
|
b6fb403 to
946f372
Compare
|
@mcollina You mean separate channels named |
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #65982 +/- ##
=======================================
Coverage 90.40% 90.40%
=======================================
Files 791 791
Lines 276226 276293 +67
Branches 53045 53053 +8
=======================================
+ Hits 249732 249796 +64
+ Misses 16899 16896 -3
- Partials 9595 9601 +6
🚀 New features to boost your workflow:
|
|
yes |
3e589e0 to
ff193a0
Compare
|
I think you are missing the documentation |
|
I added some doc to https://github.com/nodejs/node/pull/65982/changes#diff-d9c2d2d884d1dea00c82e7f00176441f9524573b6429fd83bf3835cd09a5b029R2029 could you point me to the missing doc? |
|
@mcollina could you please have a look? |
Signed-off-by: ishabi <ilyasshabi94@gmail.com>
ff193a0 to
a1c60b9
Compare
|
|
||
| ##### Event: `'threadpool.work.<type>'` | ||
|
|
||
| Each kind of thread pool work has a separate channel named by appending its |
There was a problem hiding this comment.
Make it clear that this is the libuv thread pool. I'd even suggest putting it the event name to make it clearer. While it may be self-evident from reading the supported values, being as specific as possible is helpful in both docs and channel names.
This PR aims to add support for experimental
threadpool.work.<type>diagnostics channel.type: kind of threadpool workThe event exposes:
enqueued: submission timestampstarted: execution start timestampended: execution end timestampThese timestamps allow diagnostics tools to distinguish queue time from native execution time. Cancelled work reports
startedandendedasnull.The channel and subscriber state are cached per
Environmentso the unsubscribed path remains minimal.Benchmark
Unsubscribed configurations showed no significant regressions. Most subscribed configurations were also within noise;
zlibatn=10000measured a 3.48% regression on local machine (will share the onces from CI)