/
mono-perfcounters.h
30 lines (21 loc) · 1.54 KB
/
mono-perfcounters.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#ifndef __MONO_PERFCOUNTERS_H__
#define __MONO_PERFCOUNTERS_H__
#include <glib.h>
#include <metadata/object.h>
#include <utils/mono-compiler.h>
typedef struct _MonoCounterSample MonoCounterSample;
void* mono_perfcounter_get_impl (MonoString* category, MonoString* counter, MonoString* instance,
MonoString* machine, int *type, MonoBoolean *custom) MONO_INTERNAL;
MonoBoolean mono_perfcounter_get_sample (void *impl, MonoBoolean only_value, MonoCounterSample *sample) MONO_INTERNAL;
gint64 mono_perfcounter_update_value (void *impl, MonoBoolean do_incr, gint64 value) MONO_INTERNAL;
void mono_perfcounter_free_data (void *impl) MONO_INTERNAL;
/* Category icalls */
MonoBoolean mono_perfcounter_category_del (MonoString *name) MONO_INTERNAL;
MonoString* mono_perfcounter_category_help (MonoString *category, MonoString *machine) MONO_INTERNAL;
MonoBoolean mono_perfcounter_category_exists (MonoString *counter, MonoString *category, MonoString *machine) MONO_INTERNAL;
MonoBoolean mono_perfcounter_create (MonoString *category, MonoString *help, int type, MonoArray *items) MONO_INTERNAL;
int mono_perfcounter_instance_exists (MonoString *instance, MonoString *category, MonoString *machine) MONO_INTERNAL;
MonoArray* mono_perfcounter_category_names (MonoString *machine) MONO_INTERNAL;
MonoArray* mono_perfcounter_counter_names (MonoString *category, MonoString *machine) MONO_INTERNAL;
MonoArray* mono_perfcounter_instance_names (MonoString *category, MonoString *machine) MONO_INTERNAL;
#endif /* __MONO_PERFCOUNTERS_H__ */