/* the entry point */ void mono_profiler_startup (const char *desc) { iJIT_IsProfilingActiveFlags flags = iJIT_IsProfilingActive(); if (flags == iJIT_SAMPLING_ON) { mono_profiler_install (NULL, codeanalyst_shutdown); mono_profiler_install_jit_end (method_jit_result); mono_profiler_set_events (MONO_PROFILE_JIT_COMPILATION); } }
/* the entry point */ void mono_profiler_startup (const char *desc) { MonoProfiler *prof = g_new0 (MonoProfiler, 1); mono_profiler_install (prof, sample_shutdown); mono_profiler_install_jit_end (mop_jit_end); mono_profiler_set_events (MONO_PROFILE_JIT_COMPILATION); ldscript = fopen ("ldscript", "w"); assm = fopen ("jit.s", "w"); }
static void install_jit_profile () { MonoProfiler *prof = new MonoProfiler; mono_profiler_install (prof, mono_shutdown); mono_profiler_install_jit_end (profile_jit_result); mono_profiler_set_events (MONO_PROFILE_JIT_COMPILATION); }