X-Git-Url: http://git.annexia.org/?p=virt-top.git;a=blobdiff_plain;f=virt-top%2FREADME;h=b594f951310e9c5fd5f40c9ba3701e6e978ad494;hp=8618fad8ff8c1bbe95d3c8cc0d70d3d4423da76f;hb=153714e242dd2d5dd39d3ae3002f1e8076047efa;hpb=3d742c162cbcb38663da580f1dff58db992f1a22 diff --git a/virt-top/README b/virt-top/README old mode 100644 new mode 100755 index 8618fad..b594f95 --- a/virt-top/README +++ b/virt-top/README @@ -1,22 +1,26 @@ -$Id: README,v 1.1 2007/08/30 13:52:40 rjones Exp $ - The code is structured into these files: - virt_top_utils.ml + virt_top_utils.mli / virt_top_utils.ml String functions and other small utility functions. This is included directly into virt_top.ml. - virt_top.ml + virt_top.mli / virt_top.ml 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 @@ -32,10 +36,16 @@ The code is structured into these files: Any code which needs the optional ocaml-csv library goes in here. This implements the --csv command line option. + virt_top_calendar.ml + + Any code which needs the optional ocaml-calendar library + goes in here. This implements the --end-time command line + option. + virt_top_main.ml - This is just a small bit of code to glue whatever modules - (Virt_top + Virt_top_xml? + Virt_top_csv?) together. + This is just a small bit of code to glue the modules together + Virt_top + Virt_top_xml? + Virt_top_csv? + Virt_top_calendar? The man-page is generated from the single file: