+
+Tue Jun 3 13:07:03 CEST 2008 Paolo Molaro <lupus@ximian.com>
+
+ * jit.h, mini.h, trace.c, driver.c: introduce an API to enable tracing
+ from embedding applications.
+
2008-06-02 William Holmes <billholmes54@gmail.com>
* mini-amd64.c : Correcting some of the issues for Winx64 dealing with
{
mini_cleanup (domain);
}
+
+/**
+ * mono_jit_set_trace_options:
+ * @options: string representing the trace options
+ *
+ * Set the options of the tracing engine. This function can be called before initializing
+ * the mono runtime. See the --trace mono(1) manpage for the options format.
+ *
+ * Returns: #TRUE if the options where parsed and set correctly, #FALSE otherwise.
+ */
+gboolean
+mono_jit_set_trace_options (const char* options)
+{
+ MonoTraceSpec *trace_opt = mono_trace_parse_options (options);
+ if (trace_opt == NULL)
+ return FALSE;
+ mono_jit_trace_calls = trace_opt;
+ return TRUE;
+}
+
void
mono_jit_cleanup (MonoDomain *domain);
+gboolean
+mono_jit_set_trace_options (const char* options);
+
G_END_DECLS
#endif
/* Tracing */
-MonoTraceSpec *mono_trace_parse_options (char *options) MONO_INTERNAL;
+MonoTraceSpec *mono_trace_parse_options (const char *options) MONO_INTERNAL;
void mono_trace_set_assembly (MonoAssembly *assembly) MONO_INTERNAL;
gboolean mono_trace_eval (MonoMethod *method) MONO_INTERNAL;
}
MonoTraceSpec *
-mono_trace_parse_options (char *options)
+mono_trace_parse_options (const char *options)
{
char *p = options;
int size = 1;