Added names/labels/descriptions for the newly added SMP fields.

This commit is contained in:
Martin Baulig
1998-10-10 21:41:57 +00:00
parent 127baf677b
commit 34ce0648de
2 changed files with 31 additions and 20 deletions

View File

@@ -23,13 +23,17 @@
const char *glibtop_names_cpu [GLIBTOP_MAX_CPU] = const char *glibtop_names_cpu [GLIBTOP_MAX_CPU] =
{ {
"total", "user", "nice", "sys", "idle", "frequency" "total", "user", "nice", "sys", "idle", "frequency",
"xcpu_total", "xcpu_user", "xcpu_nice", "xcpu_sys",
"xcpu_idle"
}; };
const unsigned glibtop_types_cpu [GLIBTOP_MAX_CPU] = const unsigned glibtop_types_cpu [GLIBTOP_MAX_CPU] =
{ {
GLIBTOP_TYPE_ULONG, GLIBTOP_TYPE_ULONG, GLIBTOP_TYPE_ULONG, GLIBTOP_TYPE_ULONG, GLIBTOP_TYPE_ULONG, GLIBTOP_TYPE_ULONG,
GLIBTOP_TYPE_ULONG, GLIBTOP_TYPE_ULONG, GLIBTOP_TYPE_ULONG GLIBTOP_TYPE_ULONG, GLIBTOP_TYPE_ULONG, GLIBTOP_TYPE_ULONG,
GLIBTOP_TYPE_ULONG, GLIBTOP_TYPE_ULONG, GLIBTOP_TYPE_ULONG,
GLIBTOP_TYPE_ULONG, GLIBTOP_TYPE_ULONG
}; };
const char *glibtop_labels_cpu [GLIBTOP_MAX_CPU] = const char *glibtop_labels_cpu [GLIBTOP_MAX_CPU] =
@@ -39,22 +43,25 @@ const char *glibtop_labels_cpu [GLIBTOP_MAX_CPU] =
N_("CPU Time in User Mode (nice)"), N_("CPU Time in User Mode (nice)"),
N_("CPU Time in System Mode"), N_("CPU Time in System Mode"),
N_("CPU Time in the Idle Task"), N_("CPU Time in the Idle Task"),
N_("Tick Frequency") N_("Tick Frequency"),
N_("SMP Total CPU Time"),
N_("SMP CPU Time in User Mode"),
N_("SMP CPU Time in User Mode (nice)"),
N_("SMP CPU Time in System Mode"),
N_("SMP CPU Time in the Idle Task")
}; };
const char *glibtop_descriptions_cpu [GLIBTOP_MAX_CPU] = const char *glibtop_descriptions_cpu [GLIBTOP_MAX_CPU] =
{ {
N_("The number of jiffies (1/100ths of a second) since " N_("Number of clock ticks since system boot"),
"system boot"), N_("Number of clock ticks the system spent in user mode"),
N_("The number of jiffies (1/100ths of a second) that " N_("Number of clock ticks the system spent in user mode (nice)"),
"the system spent in user mode"), N_("Number of clock ticks the system spent in system mode"),
N_("The number of jiffies (1/100ths of a second) that " N_("Number of clock ticks the system spent in the idle task"),
"the system spent in user mode with low priority (nice)"), N_("Tick frequency (default is 100)"),
N_("The number of jiffies (1/100ths of a second) that " N_("Number of clock ticks since system boot"),
"the system spent in system mode"), N_("Number of clock ticks the system spent in user mode"),
N_("The number of jiffies (1/100ths of a second) that " N_("Number of clock ticks the system spent in user mode (nice)"),
"the system spend in the idle task"), N_("Number of clock ticks the system spent in system mode"),
N_("All of the above values are in jiffies (1/100ths of " N_("Number of clock ticks the system spent in the idle task"),
"a second) unless otherwise stated in this field "
"(i.e. 'frequency != 100')")
}; };

View File

@@ -25,21 +25,23 @@
const char *glibtop_names_proc_time [GLIBTOP_MAX_PROC_TIME] = const char *glibtop_names_proc_time [GLIBTOP_MAX_PROC_TIME] =
{ {
"start_time", "rtime", "utime", "stime", "cutime", "cstime", "start_time", "rtime", "utime", "stime", "cutime", "cstime",
"timeout", "it_real_value", "timeout" "timeout", "it_real_value", "timeout", "xcpu_utime",
"xcpu_stime"
}; };
const unsigned glibtop_types_proc_time [GLIBTOP_MAX_PROC_TIME] = const unsigned glibtop_types_proc_time [GLIBTOP_MAX_PROC_TIME] =
{ {
GLIBTOP_TYPE_LONG, GLIBTOP_TYPE_LONG, GLIBTOP_TYPE_LONG, GLIBTOP_TYPE_LONG, GLIBTOP_TYPE_LONG, GLIBTOP_TYPE_LONG,
GLIBTOP_TYPE_LONG, GLIBTOP_TYPE_LONG, GLIBTOP_TYPE_LONG, GLIBTOP_TYPE_LONG, GLIBTOP_TYPE_LONG, GLIBTOP_TYPE_LONG,
GLIBTOP_TYPE_LONG, GLIBTOP_TYPE_LONG, GLIBTOP_TYPE_LONG GLIBTOP_TYPE_LONG, GLIBTOP_TYPE_LONG, GLIBTOP_TYPE_LONG,
GLIBTOP_TYPE_LONG, GLIBTOP_TYPE_LONG
}; };
const char *glibtop_labels_proc_time [GLIBTOP_MAX_PROC_TIME] = const char *glibtop_labels_proc_time [GLIBTOP_MAX_PROC_TIME] =
{ {
N_("Start_Time"), N_("RTime"), N_("UTime"), N_("STime"), N_("Start_Time"), N_("RTime"), N_("UTime"), N_("STime"),
N_("CUTime"), N_("CSTime"), N_("TimeOut"), N_("It_Real_Value"), N_("CUTime"), N_("CSTime"), N_("TimeOut"), N_("It_Real_Value"),
N_("Frequency") N_("Frequency"), N_("XCPU_UTime"), N_("XCPU_STime")
}; };
const char *glibtop_descriptions_proc_time [GLIBTOP_MAX_PROC_TIME] = const char *glibtop_descriptions_proc_time [GLIBTOP_MAX_PROC_TIME] =
@@ -53,7 +55,9 @@ const char *glibtop_descriptions_proc_time [GLIBTOP_MAX_PROC_TIME] =
N_("The time (in jiffies) of the process's next timeout"), N_("The time (in jiffies) of the process's next timeout"),
N_("The time (in jiffies) before the next SIGALRM is sent " N_("The time (in jiffies) before the next SIGALRM is sent "
"to the process due to an interval timer."), "to the process due to an interval timer."),
N_("Tick frequency") N_("Tick frequency"),
N_("SMP user-mode CPU time accumulated by process"),
N_("SMP kernel-mode CPU time accumulated by process")
}; };