procsegment

## procsegment procsegment |

## Synopsis

    #include <glibtop/procsegment.h>

    #define             GLIBTOP_PROC_SEGMENT_TEXT_RSS
    #define             GLIBTOP_PROC_SEGMENT_SHLIB_RSS
    #define             GLIBTOP_PROC_SEGMENT_DATA_RSS
    #define             GLIBTOP_PROC_SEGMENT_STACK_RSS
    #define             GLIBTOP_PROC_SEGMENT_DIRTY_SIZE
    #define             GLIBTOP_PROC_SEGMENT_START_CODE
    #define             GLIBTOP_PROC_SEGMENT_END_CODE
    #define             GLIBTOP_PROC_SEGMENT_START_STACK
    #define             GLIBTOP_MAX_PROC_SEGMENT
    struct              glibtop_proc_segment;
    void                glibtop_get_proc_segment            (glibtop_proc_segment *buf,
                                                             pid_t pid);
    #define             glibtop_get_proc_segment_r
    void                glibtop_get_proc_segment_l          (glibtop *server,
                                                             glibtop_proc_segment *buf,
                                                             pid_t pid);
    void                glibtop_get_proc_segment_p          (glibtop *server,
                                                             glibtop_proc_segment *buf,
                                                             pid_t pid);
    void                glibtop_get_proc_segment_s          (glibtop *server,
                                                             glibtop_proc_segment *buf,
                                                             pid_t pid);

## Description

## Details

### GLIBTOP_PROC_SEGMENT_TEXT_RSS

    #define GLIBTOP_PROC_SEGMENT_TEXT_RSS		0

### GLIBTOP_PROC_SEGMENT_SHLIB_RSS

    #define GLIBTOP_PROC_SEGMENT_SHLIB_RSS		1

### GLIBTOP_PROC_SEGMENT_DATA_RSS

    #define GLIBTOP_PROC_SEGMENT_DATA_RSS		2

### GLIBTOP_PROC_SEGMENT_STACK_RSS

    #define GLIBTOP_PROC_SEGMENT_STACK_RSS		3

### GLIBTOP_PROC_SEGMENT_DIRTY_SIZE

    #define GLIBTOP_PROC_SEGMENT_DIRTY_SIZE		4

### GLIBTOP_PROC_SEGMENT_START_CODE

    #define GLIBTOP_PROC_SEGMENT_START_CODE		5

### GLIBTOP_PROC_SEGMENT_END_CODE

    #define GLIBTOP_PROC_SEGMENT_END_CODE		6

### GLIBTOP_PROC_SEGMENT_START_STACK

    #define GLIBTOP_PROC_SEGMENT_START_STACK 7

### GLIBTOP_MAX_PROC_SEGMENT

    #define GLIBTOP_MAX_PROC_SEGMENT		8

### struct glibtop_proc_segment

    struct glibtop_proc_segment {
    	guint64 flags;
    	guint64 text_rss; /* text resident set size */
    	guint64 shlib_rss; /* shared-lib resident set size */
    	guint64 data_rss; /* data resident set size */
    	guint64 stack_rss; /* stack resident set size */
    	guint64 dirty_size; /* size of dirty pages */
    	guint64 start_code;
    				/* address of beginning of code segment */
    	guint64 end_code; /* address of end of code segment */
    	guint64 start_stack; /* address of the bottom of stack segment */
    };

### glibtop_get_proc_segment ()

    void                glibtop_get_proc_segment            (glibtop_proc_segment *buf,
                                                             pid_t pid);

### glibtop_get_proc_segment_r

    #define glibtop_get_proc_segment_r glibtop_get_proc_segment_p

### glibtop_get_proc_segment_l ()

    void                glibtop_get_proc_segment_l          (glibtop *server,
                                                             glibtop_proc_segment *buf,
                                                             pid_t pid);

### glibtop_get_proc_segment_p ()

    void                glibtop_get_proc_segment_p          (glibtop *server,
                                                             glibtop_proc_segment *buf,
                                                             pid_t pid);

### glibtop_get_proc_segment_s ()

    void                glibtop_get_proc_segment_s          (glibtop *server,
                                                             glibtop_proc_segment *buf,
                                                             pid_t pid);