Fri Sep 28 19:19:49 CEST 2007 Paolo Molaro <lupus@ximian.com>
[mono.git] / mono / metadata / profiler.h
index 1d9e713560bd4f3c0aac3579dc011e21bf8f76ac..2f0b519d53f39163601e6fd032a164a56241b764 100644 (file)
@@ -23,7 +23,8 @@ typedef enum {
        MONO_PROFILE_ENTER_LEAVE      = 1 << 12,
        MONO_PROFILE_COVERAGE         = 1 << 13,
        MONO_PROFILE_INS_COVERAGE     = 1 << 14,
-       MONO_PROFILE_STATISTICAL      = 1 << 15
+       MONO_PROFILE_STATISTICAL      = 1 << 15,
+       MONO_PROFILE_METHOD_EVENTS    = 1 << 16
 } MonoProfileFlags;
 
 typedef enum {
@@ -65,6 +66,9 @@ typedef void (*MonoProfileClassFunc)    (MonoProfiler *prof, MonoClass    *klass
 typedef void (*MonoProfileModuleFunc)   (MonoProfiler *prof, MonoImage    *module);
 typedef void (*MonoProfileAssemblyFunc) (MonoProfiler *prof, MonoAssembly *assembly);
 
+typedef void (*MonoProfileExceptionFunc) (MonoProfiler *prof, MonoObject *object);
+typedef void (*MonoProfileExceptionClauseFunc) (MonoProfiler *prof, MonoMethod *method, int clause_type, int clause_num);
+
 typedef void (*MonoProfileAppDomainResult)(MonoProfiler *prof, MonoDomain   *domain,   int result);
 typedef void (*MonoProfileMethodResult)   (MonoProfiler *prof, MonoMethod   *method,   int result);
 typedef void (*MonoProfileJitResult)      (MonoProfiler *prof, MonoMethod   *method,   MonoJitInfo* jinfo,   int result);
@@ -103,11 +107,13 @@ void mono_profiler_install_class       (MonoProfileClassFunc start_load, MonoPro
 
 void mono_profiler_install_jit_compile (MonoProfileMethodFunc start, MonoProfileMethodResult end);
 void mono_profiler_install_jit_end (MonoProfileJitResult end);
+void mono_profiler_install_method_free (MonoProfileMethodFunc callback);
 void mono_profiler_install_enter_leave (MonoProfileMethodFunc enter, MonoProfileMethodFunc fleave);
 void mono_profiler_install_thread      (MonoProfileThreadFunc start, MonoProfileThreadFunc end);
 void mono_profiler_install_transition  (MonoProfileMethodResult callback);
 void mono_profiler_install_allocation  (MonoProfileAllocFunc callback);
 void mono_profiler_install_statistical (MonoProfileStatFunc callback);
+void mono_profiler_install_exception   (MonoProfileExceptionFunc throw_callback, MonoProfileMethodFunc exc_method_leave, MonoProfileExceptionClauseFunc clause_callback);
 void mono_profiler_install_coverage_filter (MonoProfileCoverageFilterFunc callback);
 void mono_profiler_coverage_get  (MonoProfiler *prof, MonoMethod *method, MonoProfileCoverageFunc func);
 void mono_profiler_install_gc    (MonoProfileGCFunc callback, MonoProfileGCResizeFunc heap_resize_callback);