summaryrefslogtreecommitdiffstats
path: root/virt-top/virt-top.pod
diff options
context:
space:
mode:
authorRichard W.M. Jones <rjones@redhat.com>2007-10-19 15:44:41 +0100
committerRichard W.M. Jones <rjones@redhat.com>2007-10-19 15:44:41 +0100
commit02f659ab60024d194977a58795232398350eec13 (patch)
tree0fcc8006d97bbc087713274ed16bda8e33580af3 /virt-top/virt-top.pod
parent22fd1362126a96472a921d3767ca3220ab13da5a (diff)
downloadvirt-top-02f659ab60024d194977a58795232398350eec13.tar.gz
virt-top-02f659ab60024d194977a58795232398350eec13.tar.xz
virt-top-02f659ab60024d194977a58795232398350eec13.zip
* virt-top/virt_top_calendar.ml: Added --end-time option.
Extra optional dep on ocaml-calendar. * virt-top/virt-top.pod: Document how to compress and split CSV files. Document --end-time option and time formats. * virt-top/virt_top.ml: Allow sub-second delays when in batch and script mode.
Diffstat (limited to 'virt-top/virt-top.pod')
-rw-r--r--virt-top/virt-top.pod55
1 files changed, 55 insertions, 0 deletions
diff --git a/virt-top/virt-top.pod b/virt-top/virt-top.pod
index af31c27..a708357 100644
--- a/virt-top/virt-top.pod
+++ b/virt-top/virt-top.pod
@@ -99,6 +99,17 @@ Not every version of virt-top supports CSV output - it depends how the
program was compiled (see I<README> file in the source distribution
for details).
+To save space you can compress your CSV files (if your shell supports
+this feature, eg. I<bash>):
+
+ virt-top --csv >(gzip -9 > output.csv.gz)
+
+You can use a similar trick to split the CSV file up. In this example
+the CSV file is split every 1000 lines into files called
+I<output.csv.00>, I<output.csv.01> etc.
+
+ virt-top --csv >(split -d -l 1000 - output.csv.)
+
=item B<--no-csv-cpu>
Disable domain CPU stats in CSV output.
@@ -134,6 +145,45 @@ Do not read any init file.
Script mode. There will be no user interface. This is most useful
when used together with the I<--csv> and I<-n> options.
+=item B<--end-time time>
+
+The program will exit at the I<time> given.
+
+The time may be given in one of the following formats:
+
+=over 4
+
+=item I<YYYY-MM-DD HH:MM:SS>
+
+End time is the date and time given.
+
+=item I<HH:MM:SS>
+
+End time is the time given, today.
+
+=item I<+HH:MM:SS>
+
+End time is HH hours, MM minutes, SS seconds in the future (counted
+from the moment that program starts).
+
+=item I<+secs>
+
+End time is I<secs> seconds in the future.
+
+=back
+
+For example to run the program for 3 minutes you could do:
+
+ virt-top --end-time +00:03:00
+
+or:
+
+ virt-top --end-time +180
+
+Not every version of virt-top supports this option - it depends how the
+program was compiled (see I<README> file in the source distribution
+for details).
+
=item B<--help>
Display usage summary.
@@ -290,6 +340,11 @@ Sets secure mode.
Sets script mode.
+=item B<end-time> I<time>
+
+Set the time at which the program exits. See above for the
+time formats supported.
+
=item B<overwrite-init-file> I<false>
If set to I<false> then the I<W> key will not overwrite the