コード例 #1
0
ファイル: mono-profiler-vtune.c プロジェクト: ANahr/mono
/* 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);
	}
}
コード例 #2
0
ファイル: mop.c プロジェクト: mono/mono-oprofile
/* 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");
}
コード例 #3
0
ファイル: xmono.cpp プロジェクト: 0bj3ct/xmono
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);
}