add proc_mem.resident for win32
This commit is contained in:
parent
5692677e67
commit
d146b6bb65
|
@ -269,6 +269,7 @@ typedef struct {
|
||||||
time_t mtime;
|
time_t mtime;
|
||||||
sigar_uint64_t vsize;
|
sigar_uint64_t vsize;
|
||||||
sigar_uint64_t size;
|
sigar_uint64_t size;
|
||||||
|
sigar_uint64_t resident;
|
||||||
char name[SIGAR_PROC_NAME_LEN];
|
char name[SIGAR_PROC_NAME_LEN];
|
||||||
char state;
|
char state;
|
||||||
sigar_uint64_t handles;
|
sigar_uint64_t handles;
|
||||||
|
|
|
@ -805,7 +805,7 @@ SIGAR_DECLARE(int) sigar_proc_mem_get(sigar_t *sigar, sigar_pid_t pid,
|
||||||
|
|
||||||
procmem->vsize = pinfo->vsize;
|
procmem->vsize = pinfo->vsize;
|
||||||
procmem->size = pinfo->size;
|
procmem->size = pinfo->size;
|
||||||
procmem->resident = SIGAR_FIELD_NOTIMPL;
|
procmem->resident = pinfo->resident;
|
||||||
procmem->share = SIGAR_FIELD_NOTIMPL;
|
procmem->share = SIGAR_FIELD_NOTIMPL;
|
||||||
procmem->rss = SIGAR_FIELD_NOTIMPL;
|
procmem->rss = SIGAR_FIELD_NOTIMPL;
|
||||||
|
|
||||||
|
@ -1044,6 +1044,7 @@ static int get_proc_info(sigar_t *sigar, sigar_pid_t pid)
|
||||||
|
|
||||||
pinfo->size = PERF_VAL(PERF_IX_MEM_SIZE);
|
pinfo->size = PERF_VAL(PERF_IX_MEM_SIZE);
|
||||||
pinfo->vsize = PERF_VAL(PERF_IX_MEM_VSIZE);
|
pinfo->vsize = PERF_VAL(PERF_IX_MEM_VSIZE);
|
||||||
|
pinfo->resident = PERF_VAL(PERF_IX_MEM_PRIV);
|
||||||
pinfo->ppid = PERF_VAL(PERF_IX_PPID);
|
pinfo->ppid = PERF_VAL(PERF_IX_PPID);
|
||||||
pinfo->priority = PERF_VAL(PERF_IX_PRIORITY);
|
pinfo->priority = PERF_VAL(PERF_IX_PRIORITY);
|
||||||
pinfo->handles = PERF_VAL(PERF_IX_HANDLE_CNT);
|
pinfo->handles = PERF_VAL(PERF_IX_HANDLE_CNT);
|
||||||
|
|
Loading…
Reference in New Issue