[profiler] log profiler: limit method instrumentation to selected methods (#5517)
[mono.git] / mono / mini / trace.h
index 9912a3e8457e80036a4b14b98f0b683625bf1c4b..516fd8c60f712170ec1808f32239231107dd1f84 100644 (file)
@@ -1,29 +1,11 @@
+/**
+ * \file
+ */
+
 #ifndef __MONO_TRACE_H__
 #define __MONO_TRACE_H__
 #include <glib.h>
-
-typedef enum {
-       MONO_TRACEOP_ALL,
-       MONO_TRACEOP_PROGRAM,
-       MONO_TRACEOP_METHOD,
-       MONO_TRACEOP_ASSEMBLY,
-       MONO_TRACEOP_CLASS,
-       MONO_TRACEOP_NAMESPACE
-} MonoTraceOpcode;
-
-typedef struct {
-       MonoTraceOpcode op;
-       int   exclude;
-       void *data, *data2;
-} MonoTraceOperation;
-
-struct MonoTraceSpec {
-       int len;
-       gboolean enabled;
-       MonoTraceOperation *ops;
-
-       MonoAssembly *assembly;
-};
+#include "mono/utils/mono-compiler.h"
 
 G_BEGIN_DECLS
 
@@ -35,6 +17,7 @@ mono_trace_leave_method (MonoMethod *method, ...);
 
 void mono_trace_enable (gboolean enable);
 gboolean mono_trace_is_enabled (void);
+gboolean mono_trace_eval_exception (MonoClass *klass);
 
 G_END_DECLS