To enable EventPipe at startup instead of using the diagnostics server mid-way through the process, you can currently set the environment variable COMPlus_EnableEventPipe to 1, and COMPlus_EventPipeConfig to configure the providers you want.
However, this isn't nearly good enough for tracing some of the runtime events (i.e. loader, JIT, GC, etc.) that are fired very early during startup before managed code can be executed.
We need to move the logic that parses the environment variables and initializes the EventPipe session earlier in the runtime startup in native code.
To enable EventPipe at startup instead of using the diagnostics server mid-way through the process, you can currently set the environment variable
COMPlus_EnableEventPipeto 1, andCOMPlus_EventPipeConfigto configure the providers you want.However, this isn't nearly good enough for tracing some of the runtime events (i.e. loader, JIT, GC, etc.) that are fired very early during startup before managed code can be executed.
We need to move the logic that parses the environment variables and initializes the EventPipe session earlier in the runtime startup in native code.