1 #ifndef __MONO_PROC_LIB_H__
2 #define __MONO_PROC_LIB_H__
4 * Utility functions to access processes information and other info about the system.
8 #include <mono/utils/mono-compiler.h>
10 /* never remove or reorder these enums values: they are used in corlib/System */
13 MONO_PROCESS_NUM_THREADS,
14 MONO_PROCESS_USER_TIME, /* milliseconds */
15 MONO_PROCESS_SYSTEM_TIME, /* milliseconds */
16 MONO_PROCESS_TOTAL_TIME, /* milliseconds */
17 MONO_PROCESS_WORKING_SET,
18 MONO_PROCESS_WORKING_SET_PEAK, /* 5 */
19 MONO_PROCESS_PRIVATE_BYTES,
20 MONO_PROCESS_VIRTUAL_BYTES,
21 MONO_PROCESS_VIRTUAL_BYTES_PEAK,
38 MONO_PROCESS_ERROR_NONE, /* no error happened */
39 MONO_PROCESS_ERROR_NOT_FOUND, /* process not found */
40 MONO_PROCESS_ERROR_OTHER
43 gpointer* mono_process_list (int *size) MONO_INTERNAL;
45 char* mono_process_get_name (gpointer pid, char *buf, int len) MONO_INTERNAL;
47 gint64 mono_process_get_data (gpointer pid, MonoProcessData data) MONO_INTERNAL;
48 gint64 mono_process_get_data_with_error (gpointer pid, MonoProcessData data, MonoProcessError *error) MONO_INTERNAL;
50 int mono_cpu_count (void) MONO_INTERNAL;
51 gint64 mono_cpu_get_data (int cpu_id, MonoCpuData data, MonoProcessError *error) MONO_INTERNAL;
53 #endif /* __MONO_PROC_LIB_H__ */