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.
44 A generated file which adds gettext support if ocaml-gettext
45 was found at configure time, or else stubs it out.
49 Any code which needs the optional xml-light library goes
50 in here. Mainly for parsing domain XML descriptions to get
51 the list of block devices and network interfaces.
53 The reason for having it in a separate file is so that we
54 don't depend on xml-light.
58 Any code which needs the optional ocaml-calendar library
59 (v2) goes in here. This implements the --end-time command
64 This is just a small bit of code to glue the modules together
65 Top + Opt_xml? + Opt_calendar?
67 The man-page is generated from the single file:
71 which generates (using perldoc) the following: