Skip to content

Move EventPipe initialization via environment variable to be earlier #32514

Description

@sywhang

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.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions