From bc2983928dc8f98051321846d8c8fa374c8181b6 Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Mon, 16 Feb 2009 17:15:52 -0400 Subject: Compilation verification code only with debugging Previously, --verify would work even if the sources were built with default options. However, in the interests of performance, --verify is now only available if --enable-debug was passed to configure. --- src/utils.cc | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/utils.cc') diff --git a/src/utils.cc b/src/utils.cc index d20d585a..d42ed79c 100644 --- a/src/utils.cc +++ b/src/utils.cc @@ -463,12 +463,14 @@ bool logger_func(log_level_t level) *_log_stream << std::right << std::setw(5) << (CURRENT_TIME() - logger_start).total_milliseconds() << "ms"; +#if defined(VERIFY_ON) IF_VERIFY() { *_log_stream << std::right << std::setw(6) << std::setprecision(3); stream_memory_size(*_log_stream, current_objects_size()); *_log_stream << std::right << std::setw(6) << std::setprecision(3); stream_memory_size(*_log_stream, current_memory_size()); } +#endif *_log_stream << " " << std::left << std::setw(7); -- cgit v1.2.3