/* * The entry point function invoked by the Mono runtime. */ void mono_profiler_init_sample (const char *desc) { profiler.handle = mono_profiler_create (&profiler); mono_profiler_set_runtime_shutdown_end_callback (profiler.handle, sample_shutdown_end); mono_profiler_set_call_instrumentation_filter_callback (profiler.handle, sample_call_instrumentation_filter); mono_profiler_set_method_enter_callback (profiler.handle, sample_method_enter); }
MONO_API void mono_profiler_init_sample(const char *desc) { profiler.handle = mono_profiler_create (&profiler); mono_profiler_set_gc_event_callback (profiler.handle, gc_event); puts("=== PROFILER ATTACHED ==="); }