1 The code is structured into these files:
5 String functions and other small utility functions. This is
6 included directly into virt_top.ml.
10 Various internally used types and functions operating on those
13 collect.mli, collect.ml
15 Stats information is collected in these functions.
19 Various useful functions for drawing to the curses screen.
23 Redraw the main display.
25 csv_output.mli, csv_output.ml
27 Functions which implement --csv mode.
29 stream_output.mli, stream_output.ml
31 Functions which implement --stream mode.
35 This is the virt-top program.
37 'start_up' handles all start-up stuff, eg. command line arguments,
38 connecting to the hypervisor, enabling curses.
40 The function 'main_loop' runs the main loop and has sub-functions
41 to deal with keypresses, help screens and so on.
45 A generated file which adds gettext support if ocaml-gettext
46 was found at configure time, or else stubs it out.
50 Any code which needs the optional ocaml-calendar library
51 (v2) goes in here. This implements the --end-time command
56 This is just a small bit of code to glue the modules together
59 The man-page is generated from the single file:
63 which generates (using perldoc) the following: