mirror of
https://github.com/libguestfs/libguestfs.git
synced 2026-03-21 22:53:37 +00:00
configure: Add --enable-code-profiling and --enable-code-coverage flags.
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 commit is contained in:
@@ -29,7 +29,8 @@ libguestfs_test_tool_CFLAGS = \
|
||||
-DGUESTFS_WARN_DEPRECATED=1 \
|
||||
-DLOCALEBASEDIR=\""$(datadir)/locale"\" \
|
||||
-I$(top_srcdir)/src -I$(top_builddir)/src \
|
||||
$(WARN_CFLAGS) $(WERROR_CFLAGS)
|
||||
$(WARN_CFLAGS) $(WERROR_CFLAGS) \
|
||||
$(GPROF_CFLAGS) $(GCOV_CFLAGS)
|
||||
libguestfs_test_tool_LDADD = \
|
||||
$(top_builddir)/src/libguestfs.la
|
||||
|
||||
|
||||
Reference in New Issue
Block a user