@node Reference Manual, , About, Top @chapter LibGTop Reference Manual @menu * glibtop_cpu:: CPU Usage. * glibtop_mem:: Memory Usage. * glibtop_swap:: Swap Usage. * glibtop_uptime:: System Uptime. * glibtop_loadavg:: Load Average. * glibtop_proclist:: Process List. @end menu @node glibtop_cpu, glibtop_mem, Reference Manual, Reference Manual @section CPU Usage Library function @code{glibtop_get_cpu}: @example @cartouche void glibtop_get_cpu (glibtop_cpu *buf); void glibtop_get_cpu_l (glibtop *server, glibtop_cpu *buf); @end cartouche @end example Declaration of @code{glibtop_cpu} in @file{}) elements and contain one value for each CPU in the system. @table @code @item xcpu_flags This is interpreted as a bit-field: on systems like Solaris, not all CPUs need to be running all the time, so we set the corresponding bit for each CPU that is currently running. @end table Please note that all of the cpu values are absolute values measured in certain units (to get seconds, divide them by @code{frequency}) since system boot. To get percentual values, you need to call @code{glibtop_cpu}, save the result, wait some time and then call it again and divide the differences of the two values by the time you have waited. @page @node glibtop_mem, glibtop_swap, glibtop_cpu, Reference Manual @section Memory Usage Library function @code{glibtop_get_mem}: @example @cartouche void glibtop_get_mem (glibtop_mem *buf); void glibtop_get_mem_l (glibtop *server, glibtop_mem *buf); @end cartouche @end example Declaration of @code{glibtop_mem} in @file{