procmem

## procmem procmem |

## Synopsis

    #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
                        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);

## Description

## Details

### GLIBTOP_PROC_MEM_SIZE

    #define GLIBTOP_PROC_MEM_SIZE		0

### GLIBTOP_PROC_MEM_VSIZE

    #define GLIBTOP_PROC_MEM_VSIZE		1

### GLIBTOP_PROC_MEM_RESIDENT

    #define GLIBTOP_PROC_MEM_RESIDENT 2

### GLIBTOP_PROC_MEM_SHARE

    #define GLIBTOP_PROC_MEM_SHARE		3

### GLIBTOP_PROC_MEM_RSS

    #define GLIBTOP_PROC_MEM_RSS		4

### GLIBTOP_PROC_MEM_RSS_RLIM

    #define GLIBTOP_PROC_MEM_RSS_RLIM 5

### GLIBTOP_MAX_PROC_MEM

    #define GLIBTOP_MAX_PROC_MEM		6

### glibtop_proc_mem

    typedef struct {
    	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 */
    } glibtop_proc_mem;

### glibtop_get_proc_mem ()

    void                glibtop_get_proc_mem                (glibtop_proc_mem *buf,
                                                             pid_t pid);

`buf` : |
`pid` : |

### glibtop_get_proc_mem_r

    #define             glibtop_get_proc_mem_r

### glibtop_get_proc_mem_l ()

    void                glibtop_get_proc_mem_l              (glibtop *server,
                                                             glibtop_proc_mem *buf,
                                                             pid_t pid);

`server` : |
`buf` : |
`pid` : |

### glibtop_get_proc_mem_p ()

    void                glibtop_get_proc_mem_p              (glibtop *server,
                                                             glibtop_proc_mem *buf,
                                                             pid_t pid);

`server` : |
`buf` : |
`pid` : |

### glibtop_get_proc_mem_s ()

    void                glibtop_get_proc_mem_s              (glibtop *server,
                                                             glibtop_proc_mem *buf,
                                                             pid_t pid);

`server` : |
`buf` : |
`pid` : |