1 #ifndef __MONO_PERFCOUNTERS_H__
2 #define __MONO_PERFCOUNTERS_H__
5 #include <metadata/object.h>
6 #include <utils/mono-compiler.h>
8 typedef struct _MonoCounterSample MonoCounterSample
;
10 void* mono_perfcounter_get_impl (MonoString
* category
, MonoString
* counter
, MonoString
* instance
,
11 MonoString
* machine
, int *type
, MonoBoolean
*custom
) MONO_INTERNAL
;
13 MonoBoolean
mono_perfcounter_get_sample (void *impl
, MonoBoolean only_value
, MonoCounterSample
*sample
) MONO_INTERNAL
;
15 gint64
mono_perfcounter_update_value (void *impl
, MonoBoolean do_incr
, gint64 value
) MONO_INTERNAL
;
16 void mono_perfcounter_free_data (void *impl
) MONO_INTERNAL
;
19 MonoBoolean
mono_perfcounter_category_del (MonoString
*name
) MONO_INTERNAL
;
20 MonoString
* mono_perfcounter_category_help (MonoString
*category
, MonoString
*machine
) MONO_INTERNAL
;
21 MonoBoolean
mono_perfcounter_category_exists (MonoString
*counter
, MonoString
*category
, MonoString
*machine
) MONO_INTERNAL
;
22 MonoBoolean
mono_perfcounter_create (MonoString
*category
, MonoString
*help
, int type
, MonoArray
*items
) MONO_INTERNAL
;
23 int mono_perfcounter_instance_exists (MonoString
*instance
, MonoString
*category
, MonoString
*machine
) MONO_INTERNAL
;
24 MonoArray
* mono_perfcounter_category_names (MonoString
*machine
) MONO_INTERNAL
;
25 MonoArray
* mono_perfcounter_counter_names (MonoString
*category
, MonoString
*machine
) MONO_INTERNAL
;
26 MonoArray
* mono_perfcounter_instance_names (MonoString
*category
, MonoString
*machine
) MONO_INTERNAL
;
29 #endif /* __MONO_PERFCOUNTERS_H__ */