summaryrefslogtreecommitdiffstats
path: root/virt-top/README
diff options
context:
space:
mode:
authorRichard W.M. Jones <rjones@redhat.com>2007-10-17 13:38:09 +0100
committerRichard W.M. Jones <rjones@redhat.com>2007-10-17 13:38:09 +0100
commit6116cbd975924cc971e1eff565fee63ced296d5c (patch)
tree1c73cfd92099c42db098b02f0eeb581d0eb7f4ee /virt-top/README
parent5616e76a5a01656aa0dcc323fcd1fcd77764e638 (diff)
downloadvirt-top-6116cbd975924cc971e1eff565fee63ced296d5c.tar.gz
virt-top-6116cbd975924cc971e1eff565fee63ced296d5c.tar.xz
virt-top-6116cbd975924cc971e1eff565fee63ced296d5c.zip
Added --script option.
Rearranged the code so that there are now separate functions to collect the data and update the display.
Diffstat (limited to 'virt-top/README')
-rw-r--r--virt-top/README18
1 files changed, 12 insertions, 6 deletions
diff --git a/virt-top/README b/virt-top/README
index 8618fad..ebebbfa 100644
--- a/virt-top/README
+++ b/virt-top/README
@@ -11,12 +11,18 @@ The code is structured into these files:
This is the virt-top program.
- The interesting function is called 'redraw', which is responsible
- for redrawing the display on each frame. Another interesting
- function is 'start_up' which handles all start-up stuff, eg.
- command line arguments, connecting to the hypervisor, enabling
- curses. The function 'main_loop' runs the main loop and has
- sub-functions to deal with keypresses, help screens and so on.
+ The two interesting functions are called 'collect' and 'redraw'.
+
+ 'collect' collects all the information about domains, etc.
+
+ 'redraw' updates the display on each frame.
+
+ Another interesting function is 'start_up' which handles all
+ start-up stuff, eg. command line arguments, connecting to the
+ hypervisor, enabling curses.
+
+ The function 'main_loop' runs the main loop and has sub-functions
+ to deal with keypresses, help screens and so on.
virt_top_xml.ml