comparison lxcstats.h @ 9:6f2e13f5fcfd

Add the memory probe
author Louis Opter <louis@dotcloud.com>
date Sun, 02 Jan 2011 01:50:27 +0100
parents 8339ab15527d
children cff6be97dae1
comparison
equal deleted inserted replaced
8:fe254ba0818d 9:6f2e13f5fcfd
17 struct { 17 struct {
18 uint32_t user; /*< CPU time spent in userland */ 18 uint32_t user; /*< CPU time spent in userland */
19 uint32_t system; /*< CPU time spent in kernelland */ 19 uint32_t system; /*< CPU time spent in kernelland */
20 uint32_t *percpu; /*< CPU time per CPU (zero-terminated array or NULL) */ 20 uint32_t *percpu; /*< CPU time per CPU (zero-terminated array or NULL) */
21 } cpuacct; /*< CPU accounting in USER_HZ */ 21 } cpuacct; /*< CPU accounting in USER_HZ */
22 struct {
23 uint64_t used; /*< RAM used by applications */
24 uint64_t mapped; /*< RAM used for mapped file (includes tmpfs/shmem) */
25 uint64_t cached; /*< RAM cached by the kernel */
26 uint64_t swapped; /*< SWAP used */
27 } memory; /*< Memory accounting in bytes */
22 }; 28 };
23 29
24 /** 30 /**
25 * This structure contains globals statistics on LXC. 31 * This structure contains globals statistics on LXC.
26 * 32 *