diff --git a/mono/metadata/icall-eventpipe.c b/mono/metadata/icall-eventpipe.c index 3763ae3578b5..ae86f89ac426 100644 --- a/mono/metadata/icall-eventpipe.c +++ b/mono/metadata/icall-eventpipe.c @@ -320,7 +320,7 @@ ves_icall_System_Diagnostics_Tracing_EventPipeInternal_Enable ( (EventPipeSerializationFormat)format, true, NULL, - true); + NULL); ep_start_streaming (session_id); if (config_providers) { diff --git a/mono/mini/mini-runtime.c b/mono/mini/mini-runtime.c index 14ea80746a3a..403e1beef85d 100644 --- a/mono/mini/mini-runtime.c +++ b/mono/mini/mini-runtime.c @@ -4555,6 +4555,7 @@ mini_init (const char *filename, const char *runtime_version) #if defined(ENABLE_PERFTRACING) && !defined(DISABLE_EVENTPIPE) ep_init (); + ep_finish_init (); #endif if (mono_aot_only) {