Richard W.M. Jones [Sat, 2 Aug 2014 16:37:21 +0000 (17:37 +0100)]
Disable warning about immutable strings (for OCaml 4.02).
Richard W.M. Jones [Fri, 12 Oct 2012 12:49:57 +0000 (13:49 +0100)]
Version 1.0.8.
Hu Tao [Fri, 12 Oct 2012 12:45:26 +0000 (13:45 +0100)]
show `vcpu usages' by `virt-top -1'
Before this patch, `virt-top -1' shows total cpu usages
which euqal to `vcpu usages' + `hypervisor usages'. This
patch adds another column for domains showing `vcpu
usages'. An example is:
PHYCPU %CPU example_domain
0 10.4 10.4 0.8
1 1.6 1.6 1.4
2 2.6 2.6 2.6
3 0.0 0.0 0.1
RWMJ: I cleaned up this patch a little, but it should be
functionally the same.
Hu Tao [Fri, 12 Oct 2012 12:06:34 +0000 (13:06 +0100)]
Rename find_usages_from_stats as find_cpu_usages.
This is just code motion.
Richard W.M. Jones [Fri, 12 Oct 2012 10:38:12 +0000 (11:38 +0100)]
OCaml stable dependencies.
Richard W.M. Jones [Fri, 12 Oct 2012 10:32:06 +0000 (11:32 +0100)]
Remove D.get_cpu_stats second parameter.
In upstream ocaml-libvirt, this second parameter has been removed,
because it was found that nr_pcpus can be found by calling the libvirt
API directly.
Richard W.M. Jones [Fri, 28 Sep 2012 15:37:50 +0000 (16:37 +0100)]
Make the main code and exception handling simpler.
Richard W.M. Jones [Fri, 28 Sep 2012 15:37:17 +0000 (16:37 +0100)]
Better error messages when parsing the init file (RHBZ#836231).
Richard W.M. Jones [Fri, 28 Sep 2012 15:19:49 +0000 (16:19 +0100)]
Add missing sort order options in --help output (RHBZ#807176).
Richard W.M. Jones [Fri, 28 Sep 2012 15:14:14 +0000 (16:14 +0100)]
Man page: Add an explanation of columns (RHBZ#834208).
Richard W.M. Jones [Fri, 28 Sep 2012 14:41:19 +0000 (15:41 +0100)]
man page: Update copyright date.
Richard W.M. Jones [Tue, 6 Mar 2012 11:55:36 +0000 (11:55 +0000)]
Version 1.0.7.
Richard W.M. Jones [Tue, 6 Mar 2012 11:57:59 +0000 (11:57 +0000)]
Ignore aclocal.m4.
Richard W.M. Jones [Tue, 6 Mar 2012 11:55:24 +0000 (11:55 +0000)]
Document requirements in README file.
Lai Jiangshan [Wed, 8 Feb 2012 08:59:50 +0000 (16:59 +0800)]
virt-top: correct "virt-top -1" command via cpuacct cgroup
Old "virt-top -1" is not correct, its output is generated by guess:
use average usage for pinned physical CPUs.
example(old "virt-top -1"):
PHYCPU %CPU rhel6 Windows
0 0.6 0.1= 0.5=
1 0.6 0.1= 0.5=#
2 0.6 0.1= 0.5=
3 0.6 0.1=# 0.5=
The output almost makes no sense(all the value are just average, not real).
This is new implement, it use cpuacct cgroup to gain *real* physical usages
via cpuacct cgroup by virDomainGetCPUStats() API.
new result:
PHYCPU %CPU rhel6 Windows
0 1.3 0.3 1.0
1 2.3 0.3 2.0
2 2.2 0.5 1.7
3 2.5 0.4 2.1
PHYCPU %CPU rhel6 Windows
0 1.7 0.4 1.3
1 3.6 1.0 2.7
2 1.6 0.4 1.2
3 4.8 3.1 1.7
Note: average flag(=) is dropped, there is not average value in here.
Note: running flag(#) is dropped, because if the value is not empty,
it means the guest was once running in the physical CPU in this period
between updates.
Changed from V3:
use new virDomainGetCPUStats() libvirt-API.
add a new function find_usages_from_stats() to gain cpu usages.
Signed-off-by: Lai Jiangshan <laijs@cn.fujitsu.com>
Richard W.M. Jones [Mon, 15 Aug 2011 11:18:03 +0000 (12:18 +0100)]
Ensure manpages get built when using native compiler (thanks Laurent Léonard).
Richard W.M. Jones [Fri, 12 Aug 2011 11:10:41 +0000 (12:10 +0100)]
Version 1.0.6.
Richard W.M. Jones [Fri, 12 Aug 2011 11:09:43 +0000 (12:09 +0100)]
Update MANIFEST and fix 'make dist'.
make dist now copies the generated manual pages into the tarball, so
that we don't have to keep these generated files in git.
Richard W.M. Jones [Fri, 12 Aug 2011 10:54:41 +0000 (11:54 +0100)]
Fix ordering of csv_mode and stream_mode in tuple.
Note that this bug could have been avoided by using a struct instead
of a tuple here.
This updates commit
daf79631f3eff904ba89297148c4125ac7dfee39.
Richard W.M. Jones [Thu, 11 Aug 2011 12:11:02 +0000 (13:11 +0100)]
docs: Explain how to debug libvirt initialization problems (RHBZ#680031).
Richard W.M. Jones [Sat, 2 Apr 2011 07:48:09 +0000 (08:48 +0100)]
Pull translations from Transifex.
Richard W.M. Jones [Tue, 8 Mar 2011 11:21:49 +0000 (11:21 +0000)]
Fix --end-time option with absolute times.
Assume the user enters a local time, and convert it to UTC.
This also adds some clarifying comments to the relative time
code (but doesn't change that code).
Note that the obsolete Calendar1 code is *not* updated by this change.
Richard W.M. Jones [Tue, 8 Mar 2011 10:41:48 +0000 (10:41 +0000)]
docs: Fix documentation for virt-top -c option.
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.
Richard W.M. Jones [Tue, 8 Mar 2011 10:35:05 +0000 (10:35 +0000)]
Remove generated man pages from git.
KAMEZAWA Hiroyuki [Tue, 15 Feb 2011 20:04:42 +0000 (05:04 +0900)]
add memory stats to --csv mode.
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>
KAMEZAWA Hiroyuki [Tue, 15 Feb 2011 20:08:13 +0000 (05:08 +0900)]
Record memory statistics information to 'rd' object.
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>
Richard W.M. Jones [Mon, 7 Mar 2011 10:54:08 +0000 (10:54 +0000)]
Import virt-top into transifex.
http://www.transifex.net/projects/p/virttop/
Richard W.M. Jones [Wed, 2 Feb 2011 14:44:25 +0000 (14:44 +0000)]
Update generated man page files.
KAMEZAWA Hiroyuki [Wed, 2 Feb 2011 14:38:47 +0000 (14:38 +0000)]
Add --block-in-bytes option.
This option and the 'B' key toggles block I/O stats between
requests and bytes.
KAMEZAWA Hiroyuki [Wed, 2 Feb 2011 14:30:06 +0000 (14:30 +0000)]
Add --stream flag.
Output is sent to stdout (similar to the top -b option).
Richard W.M. Jones [Mon, 24 Jan 2011 14:33:25 +0000 (14:33 +0000)]
Obey virt-top --end-time down to near millisecond accuracy (RHBZ#637964).
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.
Richard W.M. Jones [Thu, 6 Jan 2011 14:30:35 +0000 (14:30 +0000)]
Version 1.0.5.
Richard W.M. Jones [Thu, 6 Jan 2011 14:37:45 +0000 (14:37 +0000)]
Add aclocal.m4 file to git.
This file is sort of generated, but at the moment only has
a single line which includes m4/ocaml.m4, that is vital for
the build.
Richard W.M. Jones [Thu, 6 Jan 2011 14:34:42 +0000 (14:34 +0000)]
Re-add virt-top/README file.
This seems to have been dropped during the hg->git transition.
Richard W.M. Jones [Thu, 6 Jan 2011 13:34:16 +0000 (13:34 +0000)]
Document background noise of RX packets from bridges (RHBZ#647987).
For more information see:
https://bugzilla.redhat.com/show_bug.cgi?id=647987#c9
Richard W.M. Jones [Thu, 6 Jan 2011 13:29:38 +0000 (13:29 +0000)]
man page: Remove excess blank line.
Richard W.M. Jones [Thu, 6 Jan 2011 12:40:29 +0000 (12:40 +0000)]
main: Record and print full exception stack traces.
This turns on stack trace recording unconditionally (the same
effect as if OCAMLRUNPARAM=b was always supplied), and also prints
stack traces to the log file if there is an exception.
See also:
http://caml.inria.fr/pub/docs/manual-ocaml/libref/Printexc.html
Note that this requires OCaml >= 3.11.0.
Richard W.M. Jones [Thu, 6 Jan 2011 12:38:24 +0000 (12:38 +0000)]
Fix pad function to work for negative widths (RHBZ#634435).
The pad function is supposed to pad a string to a width. Under some
circumstances, the width parameter could be negative resulting in a
call to String.sub such as:
String.sub str 0 (-1)
which caused an exception to be thrown and not caught, causing
virt-top to exit. Fix the pad function to return an empty string if
width <= 0 instead of throwing an exception.
See also:
https://bugzilla.redhat.com/show_bug.cgi?id=634435
Richard W.M. Jones [Thu, 6 Jan 2011 11:24:57 +0000 (11:24 +0000)]
Update dependencies.
Richard W.M. Jones [Thu, 6 Jan 2011 11:24:54 +0000 (11:24 +0000)]
Update generated man pages.
Richard W.M. Jones [Thu, 6 Jan 2011 11:22:44 +0000 (11:22 +0000)]
Fix virt-top --end-time option when TZ<>UTC (RHBZ#637964).
Return the end time as seconds since 1970, and don't adjust it
for timezone. In the main module the end time is compared against
the result of Unix.gettimeofday, which is also seconds since 1970,
so the comparison now works.
Tested with TZ=UTC-05, TZ=UTC and TZ=UTC+05.
NB: This has not been tested against ocaml-calendar 1.x, although
that version of calendar is obsolete and no one should be using it.
Richard W.M. Jones [Thu, 6 Jan 2011 10:19:18 +0000 (10:19 +0000)]
Update dependencies file.
Richard W.M. Jones [Thu, 6 Jan 2011 10:18:43 +0000 (10:18 +0000)]
man page: memory option shows total guest memory (RHBZ#647991).
Richard W.M. Jones [Thu, 6 Jan 2011 10:16:12 +0000 (10:16 +0000)]
man page: Update copyright date and link to web pages.
Richard W.M. Jones [Thu, 6 Jan 2011 10:14:51 +0000 (10:14 +0000)]
Remove references to xm/xentop manual pages (RHBZ#648186).
These Xen tools are obsolete since virsh/virt-top works across
all hypervisors.
Richard Jones [Thu, 2 Sep 2010 08:00:35 +0000 (09:00 +0100)]
Change order of return values from getyx - fixes display of historical CPU.
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.
Kiyoto Hashida [Tue, 15 Jun 2010 10:26:13 +0000 (11:26 +0100)]
Update Japanese translations (RHBZ#493799).
Yulia [Fri, 5 Mar 2010 10:14:44 +0000 (10:14 +0000)]
Updated Russian translations (RHBZ#493799).
Richard Jones [Fri, 5 Mar 2010 09:40:41 +0000 (09:40 +0000)]
Newer autoconf adds PACKAGE_URL definition.
Richard Jones [Fri, 12 Feb 2010 09:55:15 +0000 (09:55 +0000)]
zh_CN: Remove bogus Plural-Forms line.
Richard Jones [Fri, 12 Feb 2010 09:54:33 +0000 (09:54 +0000)]
Japanese: update bogus 'Plural-Forms: Plural-Forms'.
Hajime Taira [Fri, 12 Feb 2010 09:53:09 +0000 (09:53 +0000)]
Update Japanese translations (RHBZ#493799).
Richard Jones [Thu, 28 Jan 2010 19:45:00 +0000 (19:45 +0000)]
Rename te_IN.po -> te.po (Piotr Drąg).
Richard Jones [Thu, 28 Jan 2010 17:08:43 +0000 (17:08 +0000)]
Telugu translation added by Krishna Babu K (RHBZ#
493799c32)
Richard Jones [Thu, 28 Jan 2010 17:07:47 +0000 (17:07 +0000)]
Polish translation updated by Piotr Drag (RHBZ#
493799c31)
Richard Jones [Thu, 28 Jan 2010 17:06:43 +0000 (17:06 +0000)]
Portuguese translation added by Glaucia Cintra (RHBZ#
493799c30)
Richard Jones [Thu, 28 Jan 2010 17:04:19 +0000 (17:04 +0000)]
Chinese translation updated by Wei Liu (RHBZ#
493799c29)
Richard Jones [Thu, 28 Jan 2010 17:03:23 +0000 (17:03 +0000)]
Oriya translation added by Manoj Kumar Giri (RHBZ#
493799c28)
Richard Jones [Thu, 28 Jan 2010 17:02:12 +0000 (17:02 +0000)]
Spanish translation updated by Daniel Cabrera (RHBZ#
493799c27)
Richard Jones [Wed, 30 Dec 2009 15:24:14 +0000 (15:24 +0000)]
Update to ocaml-autoconf macros 1.1
Richard Jones [Wed, 30 Dec 2009 15:22:54 +0000 (15:22 +0000)]
Fix detection of ocaml-findlib.
Richard Jones [Tue, 6 Oct 2009 15:38:11 +0000 (16:38 +0100)]
HACKING file, update (C) messages.
Richard Jones [Tue, 6 Oct 2009 14:58:51 +0000 (15:58 +0100)]
Update PO files.
Richard Jones [Tue, 6 Oct 2009 14:58:35 +0000 (15:58 +0100)]
Remove extra spaces after s_ and f_ operators.
Richard Jones [Tue, 6 Oct 2009 14:50:07 +0000 (15:50 +0100)]
Safer curses functions.
Add safer curses functions which don't require use of dangerous
ignore() function.
Richard Jones [Tue, 6 Oct 2009 14:17:26 +0000 (15:17 +0100)]
Replace failwith (sprintf...) with failwithf
Richard Jones [Tue, 6 Oct 2009 14:14:18 +0000 (15:14 +0100)]
Remove -w s and fix so it compiles without warnings.
Richard Jones [Tue, 6 Oct 2009 14:05:09 +0000 (15:05 +0100)]
Remove NSIS installer.
Richard Jones [Tue, 6 Oct 2009 14:04:25 +0000 (15:04 +0100)]
Change over to using ocaml.m4 macros.
Richard Jones [Mon, 5 Oct 2009 17:08:42 +0000 (18:08 +0100)]
Updated MANIFEST.
Richard Jones [Mon, 5 Oct 2009 17:08:16 +0000 (18:08 +0100)]
TODO.virt-top renamed as TODO
Richard Jones [Mon, 5 Oct 2009 17:07:28 +0000 (18:07 +0100)]
Typo fixed.
Richard Jones [Mon, 5 Oct 2009 16:58:53 +0000 (17:58 +0100)]
Update manpage with --version option.
Richard Jones [Mon, 5 Oct 2009 16:55:32 +0000 (17:55 +0100)]
Add virt-top --version command line option.
Richard Jones [Mon, 5 Oct 2009 16:49:39 +0000 (17:49 +0100)]
Add the real virt-top version to help display.
Richard Jones [Mon, 5 Oct 2009 15:08:05 +0000 (16:08 +0100)]
Version 1.0.4 for release.
Richard Jones [Mon, 5 Oct 2009 15:07:58 +0000 (16:07 +0100)]
Fix changelog and manifest files.
Richard Jones [Mon, 5 Oct 2009 15:06:01 +0000 (16:06 +0100)]
gitlog-to-changelog: If the date field is empty, don't barf.
Richard Jones [Mon, 5 Oct 2009 15:05:37 +0000 (16:05 +0100)]
Added Jim Meyering's gitlog-to-changelog program.
Richard Jones [Mon, 5 Oct 2009 14:54:49 +0000 (15:54 +0100)]
Add total hardware memory field (RHBZ#521785)
Richard Jones [Mon, 5 Oct 2009 14:36:07 +0000 (15:36 +0100)]
Don't need to explicitly link against ncurses.
Richard Jones [Mon, 5 Oct 2009 14:10:44 +0000 (15:10 +0100)]
Update PO files.
Richard Jones [Mon, 5 Oct 2009 14:10:32 +0000 (15:10 +0100)]
Add Japanese to list of translations.
Richard Jones [Mon, 5 Oct 2009 14:10:08 +0000 (15:10 +0100)]
Use msgfmt to generate *.mo files correctly.
Richard Jones [Mon, 5 Oct 2009 13:17:40 +0000 (14:17 +0100)]
Update documentation.
Richard Jones [Mon, 5 Oct 2009 13:06:49 +0000 (14:06 +0100)]
Update dependencies.
Richard Jones [Mon, 5 Oct 2009 12:58:27 +0000 (13:58 +0100)]
Rename .hgignore -> .gitignore, update dependencies.
Richard W.M. Jones [Mon, 5 Oct 2009 10:39:28 +0000 (11:39 +0100)]
New translations.
Richard W.M. Jones [Mon, 5 Oct 2009 10:36:38 +0000 (11:36 +0100)]
Unknown, empty change.
Richard W.M. Jones [Mon, 3 Nov 2008 12:12:07 +0000 (12:12 +0000)]
Added PO files. For some reason the Japanese PO file has a parse error, so omitted it for now.
Richard W.M. Jones [Tue, 21 Oct 2008 09:15:40 +0000 (10:15 +0100)]
Updated MANIFEST
Richard W.M. Jones [Tue, 21 Oct 2008 09:00:46 +0000 (10:00 +0100)]
Added translations for zh_CN by Wei Liu
Richard W.M. Jones [Tue, 21 Oct 2008 08:51:03 +0000 (09:51 +0100)]
Added de translation by Fabian Affolter
Richard W.M. Jones [Wed, 16 Jul 2008 09:51:04 +0000 (10:51 +0100)]
Version 1.0.2 for release.
Richard W.M. Jones [Wed, 16 Jul 2008 09:50:57 +0000 (10:50 +0100)]
Fixed missing PO file in MANIFEST.
Richard W.M. Jones [Wed, 16 Jul 2008 09:50:48 +0000 (10:50 +0100)]
Rebuild ChangeLog file automatically when we distribute.
Richard W.M. Jones [Tue, 27 May 2008 11:21:39 +0000 (12:21 +0100)]
Brazilian Portuguese translation by Herli Joaquim de Menezes and revised by Igor Pires Soares.
Richard W.M. Jones [Thu, 1 May 2008 19:03:54 +0000 (20:03 +0100)]
Ignore tarball.
Richard W.M. Jones [Thu, 1 May 2008 19:01:46 +0000 (20:01 +0100)]
Avoid an error when gettext is not available.
rjones@thinkpad [Thu, 17 Apr 2008 10:13:39 +0000 (11:13 +0100)]
Merge.