[Mono]: Add dotnet-gcdump support. (#88634)
authorJohan Lorensson <lateralusx.github@gmail.com>
Sun, 16 Jul 2023 10:50:44 +0000 (12:50 +0200)
committerGitHub <noreply@github.com>
Sun, 16 Jul 2023 10:50:44 +0000 (12:50 +0200)
commitf0d1e5329f5b786886221dc5fe1964afb3833554
treeb44f81d28bdaabda83c0b337de7f18b1b7c8653a
parent4be3386147b3d2e1dc424450f0133a5d3f47d5d5
[Mono]: Add dotnet-gcdump support. (#88634)

Add support for dotnet-gcdump on Mono.

New GC events consumed by dotnet-gcdump has been added to the new ep-rt-mono-runtime-provider.c source file.

Disable experimental EventPipe mono profiler provider by default to preserve resources. It is possible to re-enable it by setting the following env variable, MONO_DIAGNOSTICS=--diagnostic-mono-profiler=enable.
16 files changed:
src/coreclr/scripts/genEventPipe.py
src/coreclr/scripts/genEventing.py
src/mono/mono/component/event_pipe.c
src/mono/mono/eglib/glib.h
src/mono/mono/eventpipe/ds-rt-mono.h
src/mono/mono/eventpipe/ep-rt-mono-profiler-provider.c [new file with mode: 0644]
src/mono/mono/eventpipe/ep-rt-mono-runtime-provider.c [new file with mode: 0644]
src/mono/mono/eventpipe/ep-rt-mono.c
src/mono/mono/eventpipe/ep-rt-mono.h
src/mono/mono/eventpipe/eventpipe.cmake
src/mono/mono/eventpipe/gen-eventing-event-inc.lst
src/mono/mono/sgen/sgen-gc.c
src/mono/mono/sgen/sgen-gchandles.c
src/native/eventpipe/ep-session.c
src/native/eventpipe/ep-session.h
src/native/eventpipe/ep.h