5 #ifndef __MONO_PERFCOUNTERS_H__
6 #define __MONO_PERFCOUNTERS_H__
9 #include <mono/metadata/object.h>
10 #include <mono/utils/mono-compiler.h>
11 #include <mono/metadata/icalls.h>
13 typedef struct _MonoCounterSample MonoCounterSample
;
16 MonoBoolean
mono_perfcounter_get_sample (void *impl
, MonoBoolean only_value
, MonoCounterSample
*sample
);
19 gint64
mono_perfcounter_update_value (void *impl
, MonoBoolean do_incr
, gint64 value
);
22 void mono_perfcounter_free_data (void *impl
);
24 typedef gboolean (*PerfCounterEnumCallback
) (char *category_name
, char *name
, unsigned char type
, gint64 value
, gpointer user_data
);
25 MONO_API
void mono_perfcounter_foreach (PerfCounterEnumCallback cb
, gpointer user_data
);
27 #endif /* __MONO_PERFCOUNTERS_H__ */