diff options
author | Benoît Dejean <bdejean@src.gnome.org> | 2005-01-03 09:17:45 +0000 |
---|---|---|
committer | Benoît Dejean <bdejean@src.gnome.org> | 2005-01-03 09:17:45 +0000 |
commit | 0a425e4e41f5faf1655b7159d2f39f5123669cf2 (patch) | |
tree | 82955d6313eeae87e620bb6d792129a6f68fbe26 /examples/pprint.c | |
parent | 0fa9c9bc61e7338785e11e52cd3b3462c4ef524c (diff) | |
download | libgtop-0a425e4e41f5faf1655b7159d2f39f5123669cf2.tar.gz |
Added I/O and IRQ wait time to glibtop_cpu. Closes #160443.
* examples/pprint.c: (pprint_get_cpu):
* features.def:
* include/glibtop/cpu.h:
* sysdeps/linux/cpu.c: (glibtop_init_cpu_s), (glibtop_get_cpu_s):
Added I/O and IRQ wait time to glibtop_cpu. Closes #160443.
* configure.in: Post-release bump 2.9.4
Diffstat (limited to 'examples/pprint.c')
-rw-r--r-- | examples/pprint.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/examples/pprint.c b/examples/pprint.c index cba8db64..55afa92c 100644 --- a/examples/pprint.c +++ b/examples/pprint.c @@ -41,12 +41,18 @@ static void pprint_get_cpu() PPRINT(nice, "%llu"); PPRINT(sys, "%llu"); PPRINT(idle, "%llu"); + PPRINT(iowait, "%llu"); + PPRINT(irq, "%llu"); + PPRINT(softirq, "%llu"); PPRINT(frequency, "%llu"); PPRINT_ARRAY(xcpu_total, GLIBTOP_NCPU, "%llu"); PPRINT_ARRAY(xcpu_user, GLIBTOP_NCPU, "%llu"); PPRINT_ARRAY(xcpu_nice, GLIBTOP_NCPU, "%llu"); PPRINT_ARRAY(xcpu_sys, GLIBTOP_NCPU, "%llu"); PPRINT_ARRAY(xcpu_idle, GLIBTOP_NCPU, "%llu"); + PPRINT_ARRAY(xcpu_iowait, GLIBTOP_NCPU, "%llu"); + PPRINT_ARRAY(xcpu_irq, GLIBTOP_NCPU, "%llu"); + PPRINT_ARRAY(xcpu_softirq, GLIBTOP_NCPU, "%llu"); PPRINT(xcpu_flags, "%llx"); FOOTER_PPRINT(); } |