these are clearly GC threads, and marking them as such would make it much easier to see that GC was the cause of CPU usage when looking at htop (with thread names enabled in settings):
it looks like there may be some precedent already inside v8, as using the built-in profiler shows up as a thread named v8:ProfEvntProc
in addition to labeling the obvious nodejs/v8 and nsolid threads, it would be also be useful to provide better instrumentation of js-created worker_threads
Currently all the built-in threads are just called 'node' which is not useful in debugging. For instance, with
lldb
:these are clearly GC threads, and marking them as such would make it much easier to see that GC was the cause of CPU usage when looking at
htop
(with thread names enabled in settings):it looks like there may be some precedent already inside v8, as using the built-in profiler shows up as a thread named
v8:ProfEvntProc
note that on linux there is generally a 16 character limit on thread names
i propose
major-gc
andminor-gc
labels for the threads above. there are also many others that could use unique labels:in addition to labeling the obvious nodejs/v8 and nsolid threads, it would be also be useful to provide better instrumentation of js-created worker_threads