1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
|
/* $Id$ */
/* Copyright (C) 1995, 1996, 1997 Free Software Foundation, Inc.
This file is part of the Gnome Top Library.
Contributed by Martin Baulig <martin@home-of-linux.org>, April 1998.
The Gnome Top Library is free software; you can redistribute it and/or
modify it under the terms of the GNU Library General Public License as
published by the Free Software Foundation; either version 2 of the
License, or (at your option) any later version.
The Gnome Top Library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Library General Public License for more details.
You should have received a copy of the GNU Library General Public
License along with the GNU C Library; see the file COPYING.LIB. If not,
write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
Boston, MA 02111-1307, USA. */
#include <glibtop.h>
#include <glibtop/procmem.h>
#define GLIBTOP_PROC_MEM_SIZE 0
#define GLIBTOP_PROC_MEM_VSIZE 1
#define GLIBTOP_PROC_MEM_RESIDENT 2
#define GLIBTOP_PROC_MEM_SHARE 3
#define GLIBTOP_PROC_MEM_RSS 4
#define GLIBTOP_PROC_MEM_RSS_RLIM 5
const char *glibtop_names_proc_mem [GLIBTOP_MAX_PROC_MEM] =
{
"size", "vsize", "resident", "share", "rss", "rss_rlim"
};
const unsigned glibtop_types_proc_mem [GLIBTOP_MAX_PROC_MEM] =
{
GLIBTOP_TYPE_LONG, GLIBTOP_TYPE_LONG, GLIBTOP_TYPE_LONG,
GLIBTOP_TYPE_LONG, GLIBTOP_TYPE_LONG, GLIBTOP_TYPE_LONG
};
const char *glibtop_labels_proc_mem [GLIBTOP_MAX_PROC_MEM] =
{
N_("Size"), N_("Virtual"), N_("Resident"), N_("Share"),
N_("Resident Set Size"), N_("Resident Set Size Limit")
};
const char *glibtop_descriptions_proc_mem [GLIBTOP_MAX_PROC_MEM] =
{
N_("Total # of pages of memory"),
N_("Number of pages of virtual memory"),
N_("Number of residnet set (non-swapped) pages"),
N_("Number of pages of shared (mmap'd) memory"),
N_("Number of pages the process has in real memory, minus 3 "
"for administrative purposes. This is just the pages which "
"count towards text, data, or stack space. This does not "
"include pages which have not been demand-loaded in, or which "
"are swapped out."),
N_("Current limit in bytes on the rss of the process "
"(usually 2,147,483,647).")
};
|