summaryrefslogtreecommitdiffstats
path: root/virt-top/virt_top.ml
Commit message (Collapse)AuthorAgeFilesLines
* docs: Fix documentation for virt-top -c option.Richard W.M. Jones2011-03-081-3/+3
| | | | | | | Because of changes in libvirt, this no longer connects to Xen by default. Instead the default is to connect to the libvirt default hypervisor (which could be Xen, KVM or others). Update the --help documentation and manual page accordingly.
* add memory stats to --csv mode.KAMEZAWA Hiroyuki2011-03-071-0/+8
| | | | | | | In csv mode, memory usage in kbytes and %mem against total system memory is shown. Signed-off-by: KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com>
* Record memory statistics information to 'rd' object.KAMEZAWA Hiroyuki2011-03-071-7/+11
| | | | | | | This helps to share the calculation (between modes) and will help to show memory statistics in --csv mode Signged-off-by: KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com>
* Add --block-in-bytes option.KAMEZAWA Hiroyuki2011-02-021-13/+56
| | | | | This option and the 'B' key toggles block I/O stats between requests and bytes.
* Add --stream flag.KAMEZAWA Hiroyuki2011-02-021-13/+76
| | | | Output is sent to stdout (similar to the top -b option).
* Obey virt-top --end-time down to near millisecond accuracy (RHBZ#637964).Richard W.M. Jones2011-01-241-22/+33
| | | | | | | | Adjust the final delay down so that the --end-time option is obeyed down to near millisecond accuracy. The 'usleep' function has been renamed more accurately as 'millisleep' since it sleeps for milliseconds not microseconds.
* Change order of return values from getyx - fixes display of historical CPU.Richard Jones2010-09-021-1/+1
| | | | | | | | | | | | | In this commit: http://cvs.savannah.gnu.org/viewvc/ocaml-tmk/functions.c?root=ocaml-tmk&r1=1.2&r2=1.3 Sam changed (fixed) the order that the coordinates are returned from the ncurses 'getyx' call. Since this commit was made 3 years ago it should be safe to assume everyone is using the new ocaml-ncurses by now. This meant the historical %CPU was being displayed off the bottom of the screen instead of on the top row at the right. Now it is displayed in the correct place.
* HACKING file, update (C) messages.Richard Jones2009-10-061-1/+1
|
* Remove extra spaces after s_ and f_ operators.Richard Jones2009-10-061-71/+72
|
* Safer curses functions.Richard Jones2009-10-061-81/+83
| | | | | Add safer curses functions which don't require use of dangerous ignore() function.
* Replace failwith (sprintf...) with failwithfRichard Jones2009-10-061-6/+3
|
* Remove -w s and fix so it compiles without warnings.Richard Jones2009-10-061-76/+85
|
* Add virt-top --version command line option.Richard Jones2009-10-051-0/+6
|
* Add the real virt-top version to help display.Richard Jones2009-10-051-2/+4
|
* Add total hardware memory field (RHBZ#521785)Richard Jones2009-10-051-1/+4
|
* Avoid an error when gettext is not available.Richard W.M. Jones2008-05-011-6/+8
|
* Internationalize virt-top.Richard W.M. Jones2008-03-281-74/+104
|
* Build libvirt and examples on Windows (MinGW).Richard W.M. Jones2008-01-051-0/+0
| | | | | | | | | | | | | * aclocal.m4: Add AC_CHECK_OCAML_MODULE to check for OCaml modules directly (without ocamlfind being needed). * configure.ac: Remove requirement for ocamlfind. * config.guess, config.sub: Ship these files to guess host, build and target. * libvirt/Makefile.in, examples/Makefile.in: Change these so they don't require ocamlfind, do the right thing on MinGW. * Make.rules.in: Make.rules is now generated from this file. File can use ocamlfind or direct ocaml commands as available. * .hgignore: Ignore some generated files on Windows.
* New exception Libvirt.Not_supported "function"Richard W.M. Jones2007-12-201-3/+3
| | | | | | | | * libvirt/libvirt.ml, libvirt/libvirt.mli, libvirt/libvirt_c.c: Change the ad-hoc "foo not supported" exception into a specific Libvirt.Not_supported "foo" exception. * virt-top/virt_top.ml: Change virt-top to understand new exception type.
* * virt-top/virt_top_calendar.ml: Added --end-time option.Richard W.M. Jones2007-10-191-9/+47
| | | | | | | | 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.
* Reorganised the code to put more utility functions into virt_top_utils.Richard W.M. Jones2007-10-191-137/+22
| | | | | Added explicit interfaces for Virt_top_utils & Virt_top modules. Corrected use of endwin when _not_ in script mode.
* Added GNU GPL/LGPL copyright notices everywhere.Richard W.M. Jones2007-10-171-2/+20
| | | | Fixed display of time which was accidentally broken in previous code move.
* Removed $Id$ everywhere.Richard W.M. Jones2007-10-171-1/+0
| | | | 'make distclean' now cleans more files.
* Add the flags for enabling/disabling CPU, block and net stats.Richard W.M. Jones2007-10-171-12/+28
|
* Log domain data to CSV file.Richard W.M. Jones2007-10-171-13/+52
|
* Added --script option.Richard W.M. Jones2007-10-171-231/+275
| | | | | Rearranged the code so that there are now separate functions to collect the data and update the display.
* Version 0.3.2.8.Richard W.M. Jones2007-09-241-10/+146
| | | | Added support for init files.
* * virt-top/virt_top.ml: qemu:/// URIs (and others) don't supportRichard W.M. Jones2007-09-201-0/+3
| | | | virConnectGetHostname. Catch this exception.
* * virt-top/virt_top.ml: Ignore transient error fromRichard W.M. Jones2007-09-191-5/+12
| | | | | C.num_of_defined_domains when it cannot contact xend; that was causing virt-top to exit when xend was restarted.
* 2007-09-18 Richard Jones <rjones@redhat.com>Richard W.M. Jones2007-09-181-2/+6
| | | | | | | | | | | * virt-df/virt_df.ml: Handle domains with partition-backed block devices. * virt-top/virt_top.ml: Don't fail on older libvirt which would give an error if list_domains or list_defined_domains was called with n = 0. * ChangeLog: Start tracking changes.
* Initial import from CVS.rjones@localhost2007-08-301-0/+1405