Merge pull request #1743 from alexrp/profiler-versioning
[mono.git] / mono / mini / debugger-agent.c
index 81e7f7b76b71f4f8330fd7d884a368bef61171dc..60ec169644b1a251a49cc05946d4c9a4c0824d8f 100644 (file)
@@ -981,7 +981,7 @@ mono_debugger_agent_init (void)
        mono_mutex_init (&debugger_thread_exited_mutex);
        mono_cond_init (&debugger_thread_exited_cond, NULL);
 
-       mono_profiler_install ((MonoProfiler*)&debugger_profiler, runtime_shutdown);
+       mono_profiler_install ((MonoProfiler*)&debugger_profiler, MONO_PROFILER_VERSION, runtime_shutdown);
        mono_profiler_set_events (MONO_PROFILE_APPDOMAIN_EVENTS | MONO_PROFILE_THREADS | MONO_PROFILE_ASSEMBLY_EVENTS | MONO_PROFILE_JIT_COMPILATION | MONO_PROFILE_METHOD_EVENTS);
        mono_profiler_install_runtime_initialized (runtime_initialized);
        mono_profiler_install_appdomain (NULL, appdomain_load, appdomain_start_unload, appdomain_unload);