*/
MONO_PROFILER_EVENT_0(runtime_initialized, RuntimeInitialized)
-MONO_PROFILER_EVENT_0(runtime_shutdown, RuntimeShutdown)
+MONO_PROFILER_EVENT_0(runtime_shutdown_begin, RuntimeShutdown)
+MONO_PROFILER_EVENT_0(runtime_shutdown_end, RuntimeShutdown)
MONO_PROFILER_EVENT_1(context_loaded, ContextLoaded, MonoAppContext *, context)
MONO_PROFILER_EVENT_1(context_unloaded, ContextUnloaded, MonoAppContext *, context)
mono_coop_cond_init (&debugger_thread_exited_cond);
MonoProfilerHandle prof = mono_profiler_install ((MonoProfiler*)&debugger_profiler);
- mono_profiler_set_runtime_shutdown_callback (prof, runtime_shutdown);
+ mono_profiler_set_runtime_shutdown_end_callback (prof, runtime_shutdown);
mono_profiler_set_runtime_initialized_callback (prof, runtime_initialized);
mono_profiler_set_domain_loaded_callback (prof, appdomain_load);
mono_profiler_set_domain_unloading_callback (prof, appdomain_start_unload);
if (mono_profiler_sampling_enabled ())
mono_runtime_shutdown_stat_profiler ();
+ MONO_PROFILER_RAISE (runtime_shutdown_begin, ());
+
#ifndef DISABLE_COM
cominterop_release_all_rcws ();
#endif
mono_threadpool_cleanup ();
- MONO_PROFILER_RAISE (runtime_shutdown, ());
+ MONO_PROFILER_RAISE (runtime_shutdown_end, ());
mono_profiler_cleanup ();
mono_os_mutex_init (&mutex);
MonoProfilerHandle handle = mono_profiler_install (prof);
- mono_profiler_set_runtime_shutdown_callback (handle, prof_shutdown);
+ mono_profiler_set_runtime_shutdown_end_callback (handle, prof_shutdown);
mono_profiler_set_jit_done_callback (handle, prof_jit_leave);
}
prof->string_locations_hash = g_hash_table_new (mismatched_files_guint32_hash, mismatched_files_guint32_equal);
MonoProfilerHandle handle = mono_profiler_install (prof);
- mono_profiler_set_runtime_shutdown_callback (handle, profiler_shutdown);
+ mono_profiler_set_runtime_shutdown_end_callback (handle, profiler_shutdown);
mono_profiler_set_runtime_initialized_callback (handle, runtime_initialized_cb);
mono_profiler_set_iomap_report_callback (handle, mono_portability_iomap_event);
mono_profiler_enable_allocations ();
MonoProfilerHandle handle = log_profiler->handle = mono_profiler_install (log_profiler);
//Required callbacks
- mono_profiler_set_runtime_shutdown_callback (handle, log_shutdown);
+ mono_profiler_set_runtime_shutdown_end_callback (handle, log_shutdown);
mono_profiler_set_runtime_initialized_callback (handle, runtime_initialized);
mono_profiler_set_gc_event_callback (handle, gc_event);
if (flags == iJIT_SAMPLING_ON)
{
MonoProfilerHandle handle = mono_profiler_install (NULL);
- mono_profiler_set_runtime_shutdown_callback (handle, codeanalyst_shutdown);
+ mono_profiler_set_runtime_shutdown_end_callback (handle, codeanalyst_shutdown);
mono_profiler_set_jit_done_callback (handle, method_jit_done);
mono_profiler_set_jit_code_buffer_callback (handle, code_buffer_new);
}