![]() |
![]() |
![]() |
Libgtop Reference Manual | ![]() |
---|---|---|---|---|
Top | Description |
#include <glibtop/procmem.h> #define GLIBTOP_PROC_MEM_SIZE #define GLIBTOP_PROC_MEM_VSIZE #define GLIBTOP_PROC_MEM_RESIDENT #define GLIBTOP_PROC_MEM_SHARE #define GLIBTOP_PROC_MEM_RSS #define GLIBTOP_PROC_MEM_RSS_RLIM #define GLIBTOP_MAX_PROC_MEM struct glibtop_proc_mem; void glibtop_get_proc_mem (glibtop_proc_mem *buf
,pid_t pid
); #define glibtop_get_proc_mem_r void glibtop_get_proc_mem_l (glibtop *server
,glibtop_proc_mem *buf
,pid_t pid
); void glibtop_get_proc_mem_p (glibtop *server
,glibtop_proc_mem *buf
,pid_t pid
); void glibtop_get_proc_mem_s (glibtop *server
,glibtop_proc_mem *buf
,pid_t pid
);
struct glibtop_proc_mem { guint64 flags; guint64 size; /* total # of pages of memory */ guint64 vsize; /* number of pages of virtual memory ... */ guint64 resident; /* number of resident set * (non-swapped) pages (4k) */ guint64 share; /* number of pages of shared (mmap'd) memory */ guint64 rss; /* resident set size */ guint64 rss_rlim; /* current limit (in bytes) of the rss * of the process; usually 2,147,483,647 */ };
void glibtop_get_proc_mem_l (glibtop *server
,glibtop_proc_mem *buf
,pid_t pid
);
void glibtop_get_proc_mem_p (glibtop *server
,glibtop_proc_mem *buf
,pid_t pid
);
void glibtop_get_proc_mem_s (glibtop *server
,glibtop_proc_mem *buf
,pid_t pid
);