Add event to capture min/max threads (#70063)
authorEduardo Velarde <32459232+eduardo-vp@users.noreply.github.com>
Fri, 17 Jun 2022 17:56:23 +0000 (10:56 -0700)
committerGitHub <noreply@github.com>
Fri, 17 Jun 2022 17:56:23 +0000 (10:56 -0700)
commit41d9c1cc0dca16743a54971930e81d60777af746
tree3eb2eaf7cf2308e2b58fa4392f2df070ae0ae372
parent5df4473a007fed1b49538ce6e7950ae60b4864a6
Add event to capture min/max threads (#70063)

Event ThreadPoolMinMaxThreads added.

Parameters are:
            ushort MinWorkerThreads
            ushort MaxWorkerThreads
            ushort MinIOCompletionThreads
            ushort MaxIOCompletionThreads
            ushort ClrInstanceID

It is fired in the ThreadPool constructor and in the SetMinThreads/SetMaxThreads functions.
20 files changed:
src/coreclr/System.Private.CoreLib/src/System/Diagnostics/Eventing/NativeRuntimeEventSource.PortableThreadPool.NativeSinks.CoreCLR.cs
src/coreclr/gc/env/etmdummy.h
src/coreclr/vm/ClrEtwAll.man
src/coreclr/vm/nativeeventsource.cpp
src/coreclr/vm/nativeeventsource.h
src/coreclr/vm/qcallentrypoints.cpp
src/libraries/System.Private.CoreLib/src/System/Threading/NativeRuntimeEventSource.PortableThreadPool.NativeSinks.cs
src/libraries/System.Private.CoreLib/src/System/Threading/NativeRuntimeEventSource.PortableThreadPool.cs
src/libraries/System.Private.CoreLib/src/System/Threading/PortableThreadPool.cs
src/libraries/System.Threading.ThreadPool/tests/ThreadPoolTests.cs
src/mono/System.Private.CoreLib/src/System/Diagnostics/Tracing/NativeRuntimeEventSource.PortableThreadPool.NativeSinks.Mono.cs
src/mono/mono/component/event_pipe-stub.c
src/mono/mono/component/event_pipe.c
src/mono/mono/component/event_pipe.h
src/mono/mono/eventpipe/ep-rt-mono.c
src/mono/mono/eventpipe/ep-rt-mono.h
src/mono/mono/eventpipe/gen-eventing-event-inc.lst
src/mono/mono/metadata/icall-decl.h
src/mono/mono/metadata/icall-def.h
src/mono/mono/metadata/icall-eventpipe.c