+/*
+ * mono-co.c: Coverage profiler
+ *
+
+ * Copyright 2008-2009 Novell, Inc (http://www.novell.com)
+ */
#include <mono/metadata/profiler.h>
#include <mono/metadata/tokentype.h>
#include <mono/metadata/tabledefs.h>
#include <mono/metadata/debug-helpers.h>
#include <mono/metadata/assembly.h>
#include <string.h>
+#include <glib.h>
/*
* Coverage profiler. Compile with:
mono_profiler_coverage_get (prof, method, coverage_callback);
if (prof->bb_coverage) {
char *name = mono_method_full_name (method, TRUE);
- g_print ("Partial coverage: %s\n", name + 3);
+ g_print ("Partial coverage: %s\n", name);
g_free (name);
for (tmp = prof->bb_coverage; tmp; tmp = tmp->next) {
g_print ("\t%s\n", (char*)tmp->data);
continue;
}
name = mono_method_full_name (method, TRUE);
- g_print ("Not covered: %s\n", name + 3);
+ g_print ("Not covered: %s\n", name);
g_free (name);
}
}
{
}
+void
+mono_profiler_startup (const char *desc);
+
/* the entry point */
void
mono_profiler_startup (const char *desc)