Merge pull request #5714 from alexischr/update_bockbuild
[mono.git] / mono / profiler / vtune.c
index a11650951a4d52a25ed2669122c669f386428c98..e372724393b2cd5cae1e6654e573f0fe32eaf7ad 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * mono-codeanalyst.c: VTune profiler
+ * vtune.c: VTune profiler
  *
  * Author:
  *   Virgile Bello (virgile.bello@gmail.com)
@@ -161,12 +161,12 @@ code_buffer_new (MonoProfiler *prof, void *buffer, int size, MonoProfilerCodeBuf
 
 /* the entry point */
 void
-mono_profiler_init (const char *desc)
+mono_profiler_init_vtune (const char *desc)
 {
        iJIT_IsProfilingActiveFlags flags = iJIT_IsProfilingActive();
        if (flags == iJIT_SAMPLING_ON)
        {
-               MonoProfilerHandle handle = mono_profiler_install (NULL);
+               MonoProfilerHandle handle = mono_profiler_create (NULL);
                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);