mirror of
https://github.com/libguestfs/libguestfs.git
synced 2026-03-22 07:03:38 +00:00
These configure flags enable code profiling (with gprof) and code coverage (with gcov) respectively. Although this is a nice idea, it's not currently very useful. Libtool mangles filenames in such a way that gcov cannot locate its datafiles. Profiling is of dubious utility with libguestfs which is not CPU-bound and relies extensively on running external programs (oprofile-like system profiling that took into account libguestfs + qemu or libguestfs + qemu + the appliance + filesystem tools *would* be useful). Also neither flag will help in capturing data from the appliance.
This is the third rewrite of the virt-df program. It very much
follows the outline of the Perl program which this replaced in
libguestfs 1.7.14.
main.c - main program
domains.c - dealing with libvirt, only used if libvirt is around
at compile time
df.c - getting the stats from libguestfs
output.c - writing the output, CSV output
virt-df.h - header file
Note this also uses the shared options parsing code in
'fish/options.[ch]'.