[runtime] New profiler API.
[mono.git] / mono / mini / mini-windows.c
index 2d3c64f22e62ba0014bf63ff7dcb4f40619c4f84..3852baf81f1268a1862a32274c4d3a67c4ea3ff6 100644 (file)
@@ -271,11 +271,15 @@ thread_timer_expired (HANDLE thread)
 
        context.ContextFlags = CONTEXT_CONTROL;
        if (GetThreadContext (thread, &context)) {
+               guchar *ip;
+
 #ifdef _WIN64
-               mono_profiler_stat_hit ((guchar *) context.Rip, &context);
+               ip = (guchar *) context.Rip;
 #else
-               mono_profiler_stat_hit ((guchar *) context.Eip, &context);
+               ip = (guchar *) context.Eip;
 #endif
+
+               MONO_PROFILER_RAISE (sample_hit, (ip, &context));
        }
 }