[or-cvs] r14898: Add a configure switch to enable instrument downloads. (tor/trunk)
weasel at seul.org
weasel at seul.org
Mon Jun 2 15:09:24 UTC 2008
Author: weasel
Date: 2008-06-02 11:09:24 -0400 (Mon, 02 Jun 2008)
New Revision: 14898
Modified:
tor/trunk/configure.in
Log:
Add a configure switch to enable instrument downloads.
Modified: tor/trunk/configure.in
===================================================================
--- tor/trunk/configure.in 2008-06-02 15:09:19 UTC (rev 14897)
+++ tor/trunk/configure.in 2008-06-02 15:09:24 UTC (rev 14898)
@@ -42,6 +42,8 @@
AS_HELP_STRING(--disable-buf-freelists, disable freelists for buffer RAM))
AC_ARG_ENABLE(openbsd-malloc,
AS_HELP_STRING(--enable-openbsd-malloc, Use malloc code from openbsd. Linux only))
+AC_ARG_ENABLE(instrument-downloads,
+ AS_HELP_STRING(--enable-instrument-downloads, Instrument downloads of directory resources etc.))
if test x$enable_cell_pool != xno; then
@@ -53,6 +55,10 @@
[Defined if we try to use freelists for buffer RAM chunks])
fi
AM_CONDITIONAL(USE_OPENBSD_MALLOC, test x$enable_openbsd_malloc = xyes)
+if test x$enable_instrument_downloads == xyes; then
+ AC_DEFINE(INSTRUMENT_DOWNLOADS, 1,
+ [Defined if we want to keep track of how much of each kind of resource we download.])
+fi
AC_ARG_ENABLE(transparent,
AS_HELP_STRING(--disable-transparent, disable transparent proxy support),
More information about the tor-commits
mailing list