* driver.c, mini.c: add hooks for the counters API.
svn path=/trunk/mono/; revision=57465
+Wed Mar 1 15:55:25 CET 2006 Paolo Molaro <lupus@ximian.com>
+
+ * driver.c, mini.c: add hooks for the counters API.
+
Wed Mar 1 12:28:04 CET 2006 Paolo Molaro <lupus@ximian.com>
* driver.c: show disabled options.
#include <mono/metadata/mono-debug.h>
#include <mono/metadata/security-manager.h>
#include <mono/os/gc_wrapper.h>
+#include "mono/utils/mono-counters.h"
#include "mini.h"
#include "jit.h"
} else if (strcmp (argv [i], "--print-vtable") == 0) {
mono_print_vtable = TRUE;
} else if (strcmp (argv [i], "--stats") == 0) {
+ mono_counters_enable (-1);
mono_stats.enabled = TRUE;
mono_jit_stats.enabled = TRUE;
#ifndef DISABLE_AOT
#include <mono/metadata/rawbuffer.h>
#include <mono/utils/mono-math.h>
#include <mono/utils/mono-compiler.h>
+#include <mono/utils/mono-counters.h>
#include <mono/os/gc_wrapper.h>
#include "mini.h"
g_hash_table_destroy (class_init_hash_addr);
print_jit_stats ();
+ mono_counters_dump (-1, stdout);
}
void