STXXL  1.4-dev
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
verbose.h File Reference
#include <cstdlib>
#include <iostream>
#include <sstream>
#include <string>
#include <stxxl/bits/unused.h>

Go to the source code of this file.

Namespaces

 stxxl
 STXXL library namespace
 

Macros

#define _STXXL_NOT_VERBOSE(message)
 
#define _STXXL_PRINT(label, message, flags)
 
#define _STXXL_PRINT_FLAGS_DEFAULT   (_STXXL_PRNT_COUT | _STXXL_PRNT_LOG)
 
#define _STXXL_PRINT_FLAGS_ERROR   (_STXXL_PRNT_CERR | _STXXL_PRNT_ERRLOG)
 
#define _STXXL_PRINT_FLAGS_VERBOSE   (_STXXL_PRINT_FLAGS_DEFAULT | _STXXL_PRNT_TIMESTAMP | _STXXL_PRNT_THREAD_ID)
 
#define _STXXL_PRNT_ADDNEWLINE   (1 << 16)
 
#define _STXXL_PRNT_CERR   (1 << 1)
 
#define _STXXL_PRNT_COUT   (1 << 0)
 
#define _STXXL_PRNT_ERRLOG   (1 << 3)
 
#define _STXXL_PRNT_LOG   (1 << 2)
 
#define _STXXL_PRNT_THREAD_ID   (1 << 18)
 
#define _STXXL_PRNT_TIMESTAMP   (1 << 17)
 
#define STXXL_ASSERT(condition)
 
#define STXXL_CHECK(condition)
 STXXL_CHECK is an assertion macro for unit tests, which contrarily to assert() also works in release builds. These macros should ONLY be used in UNIT TESTS, not in the library source. Use usual assert() there. More...
 
#define STXXL_CHECK2(condition, text)
 
#define STXXL_CHECK_EQUAL(a, b)
 STXXL_CHECK_EQUAL(a,b) is an assertion macro for unit tests, similar to STXXL_CHECK(a==b). The difference is that STXXL_CHECK_EQUAL(a,b) also prints the values of a and b. Attention: a and b must be printable with std::cout! More...
 
#define STXXL_CHECK_THROW(code, exception_type)
 
#define STXXL_DEBUG(x)   STXXL_DEBUG_COND(debug, x)
 STXXL_DEBUG is a macro which prints iff the locally defined variable "debug" is true. Use this for scoped-based debug variables. More...
 
#define STXXL_DEBUG0(x)   STXXL_DEBUG_COND(false, x)
 STXXL_DEBUG0 is a macro which never prints the debug message, used to temporarily disable STXXL_DEBUG occurrences. More...
 
#define STXXL_DEBUG1(x)   STXXL_DEBUG_COND(true, x)
 STXXL_DEBUG1 is a macro which always prints the debug message, used to temporarily enable STXXL_DEBUG occurrences. More...
 
#define STXXL_DEBUG_ASSERT(condition)
 
#define STXXL_DEBUG_COND(dbg, x)
 STXXL_DEBUG_COND is a macro which prints iff the passed variable "debug" is true. Use this for conditional debug variables. More...
 
#define STXXL_ERRMSG(x)   _STXXL_PRINT("STXXL-ERRMSG", x, _STXXL_PRINT_FLAGS_ERROR)
 
#define STXXL_MEMDUMP(x)   _STXXL_PRINT("STXXL-MSG", #x " = " << stxxl::format_IEC_size(x) << "B", _STXXL_PRINT_FLAGS_DEFAULT)
 
#define STXXL_MSG(x)   _STXXL_PRINT("STXXL-MSG", x, _STXXL_PRINT_FLAGS_DEFAULT)
 
#define STXXL_VARDUMP(x)   _STXXL_PRINT("STXXL-MSG", #x " = " << x, _STXXL_PRINT_FLAGS_DEFAULT)
 
#define STXXL_VERBOSE(x)   STXXL_VERBOSE1(x)
 
#define STXXL_VERBOSE0(x)   _STXXL_NOT_VERBOSE(x)
 
#define STXXL_VERBOSE0_THIS(x)   STXXL_VERBOSE0("[" << static_cast<void*>(this) << "] " << x)
 
#define STXXL_VERBOSE1(x)   _STXXL_NOT_VERBOSE(x)
 
#define STXXL_VERBOSE1_THIS(x)   STXXL_VERBOSE1("[" << static_cast<void*>(this) << "] " << x)
 
#define STXXL_VERBOSE2(x)   _STXXL_NOT_VERBOSE(x)
 
#define STXXL_VERBOSE2_THIS(x)   STXXL_VERBOSE2("[" << static_cast<void*>(this) << "] " << x)
 
#define STXXL_VERBOSE3(x)   _STXXL_NOT_VERBOSE(x)
 
#define STXXL_VERBOSE3_THIS(x)   STXXL_VERBOSE3("[" << static_cast<void*>(this) << "] " << x)
 
#define STXXL_VERBOSE_LEVEL   -1
 

Functions

void stxxl::print_msg (const char *label, const std::string &msg, unsigned flags)
 

Macro Definition Documentation

#define _STXXL_NOT_VERBOSE (   message)
Value:
do { \
if (0) { \
std::ostringstream str_; \
str_ << message; \
} \
} while (false)

Definition at line 49 of file verbose.h.

#define _STXXL_PRINT (   label,
  message,
  flags 
)
Value:
do { \
std::ostringstream str_; \
str_ << message; \
stxxl::print_msg(label, str_.str(), flags | _STXXL_PRNT_ADDNEWLINE); \
} while (false)
#define _STXXL_PRNT_ADDNEWLINE
Definition: verbose.h:28
void print_msg(const char *label, const std::string &msg, unsigned flags)
Definition: verbose.cpp:33

Definition at line 42 of file verbose.h.

#define _STXXL_PRINT_FLAGS_DEFAULT   (_STXXL_PRNT_COUT | _STXXL_PRNT_LOG)

Definition at line 32 of file verbose.h.

#define _STXXL_PRINT_FLAGS_ERROR   (_STXXL_PRNT_CERR | _STXXL_PRNT_ERRLOG)

Definition at line 33 of file verbose.h.

#define _STXXL_PRINT_FLAGS_VERBOSE   (_STXXL_PRINT_FLAGS_DEFAULT | _STXXL_PRNT_TIMESTAMP | _STXXL_PRNT_THREAD_ID)

Definition at line 34 of file verbose.h.

#define _STXXL_PRNT_ADDNEWLINE   (1 << 16)

Definition at line 28 of file verbose.h.

Referenced by stxxl::print_msg().

#define _STXXL_PRNT_CERR   (1 << 1)

Definition at line 25 of file verbose.h.

Referenced by stxxl::print_msg().

#define _STXXL_PRNT_COUT   (1 << 0)

Definition at line 24 of file verbose.h.

Referenced by stxxl::print_msg().

#define _STXXL_PRNT_ERRLOG   (1 << 3)

Definition at line 27 of file verbose.h.

Referenced by stxxl::print_msg().

#define _STXXL_PRNT_LOG   (1 << 2)

Definition at line 26 of file verbose.h.

Referenced by stxxl::print_msg().

#define _STXXL_PRNT_THREAD_ID   (1 << 18)

Definition at line 30 of file verbose.h.

Referenced by stxxl::print_msg().

#define _STXXL_PRNT_TIMESTAMP   (1 << 17)

Definition at line 29 of file verbose.h.

Referenced by stxxl::print_msg().

#define STXXL_ASSERT (   condition)
Value:
do { if (1) { \
if (!(condition)) { \
_STXXL_PRINT("STXXL-ASSERT", \
#condition " - FAILED @ " __FILE__ ":" << __LINE__, \
} \
} \
} while (0)
#define _STXXL_PRINT_FLAGS_ERROR
Definition: verbose.h:33
#define _STXXL_PRINT(label, message, flags)
Definition: verbose.h:42
Examples:
examples/algo/copy_and_sort_file.cpp.

Definition at line 220 of file verbose.h.

Referenced by stxxl::block_scheduler_algorithm_offline_lru_prefetching< SwappableBlockType >::acquire(), stxxl::winner_tree< stxxl::parallel_priority_queue::external_min_comparator >::activate_player(), stxxl::winner_tree< stxxl::parallel_priority_queue::external_min_comparator >::activate_without_replay(), stxxl::parallel_priority_queue< ValueType, CompareType, AllocStrategy, BlockSize, DefaultMemSize, MaxItems >::add_as_internal_array(), stxxl::btree::normal_node< KeyType, KeyCmp, RawSize, BTreeType >::balance(), stxxl::parallel_priority_queue< ValueType, CompareType, AllocStrategy, BlockSize, DefaultMemSize, MaxItems >::bulk_pop_limit(), stxxl::parallel_priority_queue< ValueType, CompareType, AllocStrategy, BlockSize, DefaultMemSize, MaxItems >::calculate_merge_sequences(), stxxl::parallel_priority_queue< ValueType, CompareType, AllocStrategy, BlockSize, DefaultMemSize, MaxItems >::check_external_level(), stxxl::sort_local::create_runs(), stxxl::winner_tree< stxxl::parallel_priority_queue::external_min_comparator >::deactivate_player(), stxxl::winner_tree< stxxl::parallel_priority_queue::external_min_comparator >::deactivate_player_step(), stxxl::winner_tree< stxxl::parallel_priority_queue::external_min_comparator >::deactivate_without_replay(), stxxl::random_pager< npages_ >::hit(), stxxl::btree::btree< KeyType, DataType, CompareType, RawNodeSize, RawLeafSize, PDAllocStrategy >::insert_into_root(), stxxl::ppq_local::internal_array< ValueType >::internal_array(), stxxl::ksort(), stxxl::parallel::multiway_merge_3_combined(), stxxl::parallel::multiway_merge_3_variant(), stxxl::parallel::multiway_merge_4_combined(), stxxl::parallel::multiway_merge_4_variant(), stxxl::winner_tree< stxxl::parallel_priority_queue::external_min_comparator >::notify_change(), stxxl::winner_tree< stxxl::parallel_priority_queue::external_min_comparator >::replay_on_change(), stxxl::winner_tree< stxxl::parallel_priority_queue::external_min_comparator >::replay_on_deactivations(), stxxl::winner_tree< stxxl::parallel_priority_queue::external_min_comparator >::replay_on_pop(), stxxl::winner_tree< stxxl::parallel_priority_queue::external_min_comparator >::resize_and_rebuild(), stxxl::parallel_priority_queue< ValueType, CompareType, AllocStrategy, BlockSize, DefaultMemSize, MaxItems >::resize_read_pool(), stxxl::block_scheduler_algorithm_offline_lru_prefetching< SwappableBlockType >::schedule_write(), stxxl::write_pool< BlockType >::steal(), stxxl::sort_helper::verify_sentinel_strict_weak_ordering(), stxxl::winner_tree< stxxl::parallel_priority_queue::external_min_comparator >::winner_tree(), and stxxl::ppq_local::external_array_writer< ExternalArrayType >::~external_array_writer().

#define STXXL_CHECK (   condition)
Value:
do { \
if (!(condition)) { \
_STXXL_PRINT("STXXL-CHECK", \
#condition " - FAILED @ " __FILE__ ":" << __LINE__, \
} \
} while (0)
#define _STXXL_PRINT_FLAGS_ERROR
Definition: verbose.h:33
#define _STXXL_PRINT(label, message, flags)
Definition: verbose.h:42

STXXL_CHECK is an assertion macro for unit tests, which contrarily to assert() also works in release builds. These macros should ONLY be used in UNIT TESTS, not in the library source. Use usual assert() there.

Examples:
examples/containers/vector_buf.cpp.

Definition at line 170 of file verbose.h.

Referenced by stxxl::parallel_priority_queue< ValueType, CompareType, AllocStrategy, BlockSize, DefaultMemSize, MaxItems >::add_as_internal_array(), stxxl::parallel_priority_queue< ValueType, CompareType, AllocStrategy, BlockSize, DefaultMemSize, MaxItems >::check_invariants(), and stxxl::prefetch_pool< BlockType >::steal().

#define STXXL_CHECK2 (   condition,
  text 
)
Value:
do { \
if (!(condition)) { \
_STXXL_PRINT("STXXL-CHECK", \
text << " - " #condition " - FAILED @ " __FILE__ ":" << __LINE__, \
} \
} while (0)
#define _STXXL_PRINT_FLAGS_ERROR
Definition: verbose.h:33
#define _STXXL_PRINT(label, message, flags)
Definition: verbose.h:42

Definition at line 179 of file verbose.h.

#define STXXL_CHECK_EQUAL (   a,
 
)
Value:
do { \
if (!(a == b)) { \
_STXXL_PRINT("STXXL-CHECK", \
"\"" << a << "\" = " #a " == " #b " = \"" << b << "\"" \
" - FAILED @ " __FILE__ ":" << __LINE__, \
} \
} while (0)
#define _STXXL_PRINT_FLAGS_ERROR
Definition: verbose.h:33
#define _STXXL_PRINT(label, message, flags)
Definition: verbose.h:42

STXXL_CHECK_EQUAL(a,b) is an assertion macro for unit tests, similar to STXXL_CHECK(a==b). The difference is that STXXL_CHECK_EQUAL(a,b) also prints the values of a and b. Attention: a and b must be printable with std::cout!

Definition at line 192 of file verbose.h.

Referenced by stxxl::parallel_priority_queue< ValueType, CompareType, AllocStrategy, BlockSize, DefaultMemSize, MaxItems >::check_invariants(), stxxl::parallel::multiway_merge_3_variant(), and stxxl::parallel::multiway_merge_4_variant().

#define STXXL_CHECK_THROW (   code,
  exception_type 
)
Value:
do { \
bool t_ = false; try { code; } \
catch (const exception_type&) { t_ = true; } \
if (t_) break; \
_STXXL_PRINT("STXXL-CHECK-THROW", \
#code " - NO EXCEPTION " #exception_type \
" @ " __FILE__ ":" << __LINE__, \
_STXXL_PRINT_FLAGS_ERROR); \
abort(); \
} while (0)
#define _STXXL_PRINT(label, message, flags)
Definition: verbose.h:42

Definition at line 265 of file verbose.h.

#define STXXL_DEBUG (   x)    STXXL_DEBUG_COND(debug, x)

STXXL_DEBUG is a macro which prints iff the locally defined variable "debug" is true. Use this for scoped-based debug variables.

Definition at line 156 of file verbose.h.

Referenced by stxxl::parallel_priority_queue< ValueType, CompareType, AllocStrategy, BlockSize, DefaultMemSize, MaxItems >::add_as_internal_array(), stxxl::parallel_priority_queue< ValueType, CompareType, AllocStrategy, BlockSize, DefaultMemSize, MaxItems >::bulk_pop(), stxxl::parallel_priority_queue< ValueType, CompareType, AllocStrategy, BlockSize, DefaultMemSize, MaxItems >::bulk_pop_limit(), stxxl::parallel_priority_queue< ValueType, CompareType, AllocStrategy, BlockSize, DefaultMemSize, MaxItems >::bulk_push_end(), stxxl::parallel_priority_queue< ValueType, CompareType, AllocStrategy, BlockSize, DefaultMemSize, MaxItems >::calculate_merge_sequences(), stxxl::parallel_priority_queue< ValueType, CompareType, AllocStrategy, BlockSize, DefaultMemSize, MaxItems >::check_external_level(), stxxl::parallel_priority_queue< ValueType, CompareType, AllocStrategy, BlockSize, DefaultMemSize, MaxItems >::cleanup_external_arrays(), stxxl::parallel_priority_queue< ValueType, CompareType, AllocStrategy, BlockSize, DefaultMemSize, MaxItems >::convert_eb_into_ia(), stxxl::ppq_local::external_array_writer< ExternalArrayType >::external_array_writer(), stxxl::parallel_priority_queue< ValueType, CompareType, AllocStrategy, BlockSize, DefaultMemSize, MaxItems >::flush_insertion_heaps_with_limit(), stxxl::parallel_priority_queue< ValueType, CompareType, AllocStrategy, BlockSize, DefaultMemSize, MaxItems >::flush_internal_arrays(), stxxl::ppq_local::external_array_writer< ExternalArrayType >::free_block_ref(), stxxl::ppq_local::external_array_writer< ExternalArrayType >::get_block_ref(), stxxl::parallel_priority_queue< ValueType, CompareType, AllocStrategy, BlockSize, DefaultMemSize, MaxItems >::hint_external_arrays(), stxxl::ppq_local::external_array< ValueType, BlockSize, AllocStrategy >::hint_next_block(), stxxl::ppq_local::external_array_writer< ExternalArrayType >::iterator::iterator(), stxxl::ppq_local::external_array_writer< ExternalArrayType >::iterator::make_live(), stxxl::parallel_priority_queue< ValueType, CompareType, AllocStrategy, BlockSize, DefaultMemSize, MaxItems >::merge_external_arrays(), stxxl::ppq_local::external_array_writer< ExternalArrayType >::iterator::operator=(), stxxl::ppq_local::external_array< ValueType, BlockSize, AllocStrategy >::read_block(), stxxl::parallel_priority_queue< ValueType, CompareType, AllocStrategy, BlockSize, DefaultMemSize, MaxItems >::rebuild_hint_tree(), stxxl::ppq_local::external_array< ValueType, BlockSize, AllocStrategy >::rebuild_hints_cancel(), stxxl::ppq_local::external_array< ValueType, BlockSize, AllocStrategy >::rebuild_hints_finish(), stxxl::ppq_local::external_array< ValueType, BlockSize, AllocStrategy >::rebuild_hints_prehint_next_block(), stxxl::parallel_priority_queue< ValueType, CompareType, AllocStrategy, BlockSize, DefaultMemSize, MaxItems >::refill_extract_buffer(), stxxl::ppq_local::external_array< ValueType, BlockSize, AllocStrategy >::remove_items(), stxxl::parallel_priority_queue< ValueType, CompareType, AllocStrategy, BlockSize, DefaultMemSize, MaxItems >::resize_read_pool(), stxxl::parallel_priority_queue< ValueType, CompareType, AllocStrategy, BlockSize, DefaultMemSize, MaxItems >::top(), stxxl::ppq_local::external_array< ValueType, BlockSize, AllocStrategy >::update_block_pointers(), stxxl::ppq_local::external_array< ValueType, BlockSize, AllocStrategy >::wait_all_hinted_blocks(), stxxl::ppq_local::external_array< ValueType, BlockSize, AllocStrategy >::wait_next_blocks(), stxxl::ppq_local::external_array< ValueType, BlockSize, AllocStrategy >::write_block(), stxxl::ppq_local::external_array< ValueType, BlockSize, AllocStrategy >::~external_array(), and stxxl::ppq_local::external_array_writer< ExternalArrayType >::iterator::~iterator().

#define STXXL_DEBUG1 (   x)    STXXL_DEBUG_COND(true, x)

STXXL_DEBUG1 is a macro which always prints the debug message, used to temporarily enable STXXL_DEBUG occurrences.

Definition at line 164 of file verbose.h.

#define STXXL_DEBUG_ASSERT (   condition)
Value:
do { if (false) { \
if (!(condition)) { \
_STXXL_PRINT("STXXL-DEBUG-ASSERT", \
#condition " - FAILED @ " __FILE__ ":" << __LINE__, \
} \
} \
} while (0)
#define _STXXL_PRINT_FLAGS_ERROR
Definition: verbose.h:33
#define _STXXL_PRINT(label, message, flags)
Definition: verbose.h:42

Definition at line 250 of file verbose.h.

Referenced by stxxl::parallel::multiway_merge_3_combined(), stxxl::parallel::multiway_merge_4_combined(), stxxl::parallel::multiway_merge_loser_tree_combined(), stxxl::parallel::multiway_merge_loser_tree_sentinel(), and stxxl::parallel::sequential_multiway_merge().

#define STXXL_DEBUG_COND (   dbg,
 
)
Value:
do { \
if (dbg) { \
} \
} while (0)
#define _STXXL_PRINT(label, message, flags)
Definition: verbose.h:42
#define _STXXL_PRINT_FLAGS_DEFAULT
Definition: verbose.h:32

STXXL_DEBUG_COND is a macro which prints iff the passed variable "debug" is true. Use this for conditional debug variables.

Definition at line 147 of file verbose.h.

#define STXXL_ERRMSG (   x)    _STXXL_PRINT("STXXL-ERRMSG", x, _STXXL_PRINT_FLAGS_ERROR)

Definition at line 94 of file verbose.h.

Referenced by stxxl::stats::_reset_io_wait_time(), stxxl::request_queue_impl_1q::add_request(), stxxl::request_queue_impl_qwqr::add_request(), stxxl::linuxaio_queue::add_request(), stxxl::aligned_alloc(), stxxl::request_queue_impl_1q::cancel_request(), stxxl::request_queue_impl_qwqr::cancel_request(), stxxl::linuxaio_queue::cancel_request(), stxxl::request::check_alignment(), stxxl::request::check_nref_failed(), stxxl::check_sort_settings(), stxxl::stream::check_sorted_runs(), stxxl::ufs_file_base::close_remove(), stxxl::disk_allocator::deallocation_error(), stxxl::block_scheduler_algorithm_offline_lru_prefetching< SwappableBlockType >::deinitialize(), stxxl::fileperblock_file< base_file_type >::discard(), stxxl::disk_allocator::dump(), stxxl::fileperblock_file< base_file_type >::export_files(), stxxl::btree::node_cache< leaf_type, self_type >::get_const_node(), stxxl::btree::node_cache< leaf_type, self_type >::get_new_node(), stxxl::btree::node_cache< leaf_type, self_type >::get_node(), stxxl::block_scheduler_algorithm_offline_lru_prefetching< SwappableBlockType >::give_up(), stxxl::queue< ValueType, BlockSize, AllocStr, SizeType >::init(), stxxl::sequence< ValueType, BlockSize, AllocStr, SizeType >::init(), stxxl::priority_queue_local::ext_merger< BlockType, CompareType, Arity, AllocStr >::init(), stxxl::stream::basic_runs_merger< typename runs_creator_type::sorted_runs_type, cmp_type, alloc_strategy_type >::initialize(), stxxl::config::load_default_config(), stxxl::priority_queue< ConfigType >::make_space_available(), stxxl::parallel_priority_queue< ValueType, CompareType, AllocStrategy, BlockSize, DefaultMemSize, MaxItems >::merge_external_arrays(), stxxl::matrix< ValueType, BlockSideLength >::multiply(), stxxl::matrix< ValueType, BlockSideLength >::multiply_internal(), stxxl::disk_allocator::new_blocks(), stxxl::open_file_impl(), stxxl::parallel_priority_queue< ValueType, CompareType, AllocStrategy, BlockSize, DefaultMemSize, MaxItems >::parallel_priority_queue(), stxxl::parallel_priority_queue< ValueType, CompareType, AllocStrategy, BlockSize, DefaultMemSize, MaxItems >::pop(), stxxl::btree::node_cache< leaf_type, self_type >::prefetch_node(), stxxl::ppq_local::external_array< ValueType, BlockSize, AllocStrategy >::prepare_write_pool(), stxxl::print_library_version_mismatch(), stxxl::random_shuffle(), stxxl::ppq_local::external_array< ValueType, BlockSize, AllocStrategy >::read_block(), stxxl::block_scheduler_algorithm_offline_lfd< SwappableBlockType >::release(), stxxl::stats::reset(), stxxl::parallel_priority_queue< ValueType, CompareType, AllocStrategy, BlockSize, DefaultMemSize, MaxItems >::resize_read_pool(), stxxl::stable_ksort(), stxxl::parallel_priority_queue< ValueType, CompareType, AllocStrategy, BlockSize, DefaultMemSize, MaxItems >::top(), stxxl::ufs_file_base::ufs_file_base(), stxxl::ufs_file_base::unlink(), stxxl::wfs_file_base::wfs_file_base(), stxxl::block_scheduler< SwappableBlockType >::~block_scheduler(), stxxl::block_scheduler_algorithm_offline_lfd< SwappableBlockType >::~block_scheduler_algorithm_offline_lfd(), stxxl::block_scheduler_algorithm_offline_lru_prefetching< SwappableBlockType >::~block_scheduler_algorithm_offline_lru_prefetching(), stxxl::block_scheduler_algorithm_online_lru< SwappableBlockType >::~block_scheduler_algorithm_online_lru(), stxxl::block_scheduler_algorithm_simulation< SwappableBlockType >::~block_scheduler_algorithm_simulation(), stxxl::config::~config(), stxxl::file::~file(), stxxl::fileperblock_file< base_file_type >::~fileperblock_file(), and stxxl::vector< ValueType >::~vector().

#define STXXL_MEMDUMP (   x)    _STXXL_PRINT("STXXL-MSG", #x " = " << stxxl::format_IEC_size(x) << "B", _STXXL_PRINT_FLAGS_DEFAULT)
#define STXXL_MSG (   x)    _STXXL_PRINT("STXXL-MSG", x, _STXXL_PRINT_FLAGS_DEFAULT)
Examples:
examples/algo/copy_and_sort_file.cpp, examples/algo/phonebills_genlog.cpp, examples/algo/sort_file.cpp, examples/containers/deque2.cpp, examples/containers/pqueue1.cpp, examples/containers/queue2.cpp, examples/containers/sorter2.cpp, examples/containers/stack2.cpp, and examples/containers/vector2.cpp.

Definition at line 73 of file verbose.h.

Referenced by stxxl::ufs_file_base::_after_open(), stxxl::block_manager::block_manager(), stxxl::ksort_local::check_ksorted_runs(), stxxl::sort_local::check_sorted_runs(), stxxl::stream::check_sorted_runs(), stxxl::swappable_block< ValueType, BlockSideLength *BlockSideLength >::clean_async(), stxxl::config::config(), stxxl::block_scheduler_algorithm_offline_lru_prefetching< SwappableBlockType >::deinit(), stxxl::priority_queue< ConfigType >::dump_params(), stxxl::priority_queue< ConfigType >::dump_sizes(), stxxl::queue< ValueType, BlockSize, AllocStr, SizeType >::init(), stxxl::sequence< ValueType, BlockSize, AllocStr, SizeType >::init(), stxxl::linuxaio_queue::linuxaio_queue(), stxxl::stream::basic_runs_merger< RunsType, CompareType, AllocStr >::merge_recursively(), stxxl::open_file_impl(), stxxl::winner_tree< stxxl::parallel_priority_queue::external_min_comparator >::print_stats(), stxxl::ppq_local::minima_tree< parallel_priority_queue< value_type, compare_type, alloc_strategy, block_size, DefaultMemSize, MaxItems > >::print_stats(), stxxl::parallel_priority_queue< ValueType, CompareType, AllocStrategy, BlockSize, DefaultMemSize, MaxItems >::print_stats(), stxxl::swappable_block< ValueType, BlockSideLength *BlockSideLength >::read_async(), stxxl::priority_queue< ConfigType >::refill_delete_buffer(), stxxl::parallel_priority_queue< ValueType, CompareType, AllocStrategy, BlockSize, DefaultMemSize, MaxItems >::refill_extract_buffer(), stxxl::priority_queue< ConfigType >::refill_group_buffer(), stxxl::simple_vector< BID< BlockSize > >::resize(), stxxl::stream::basic_runs_creator< stream::use_push< ValueType >, cmp_type, BlockSize, alloc_strategy_type >::result(), stxxl::stream::runs_creator< use_push< ValueType >, CompareType, BlockSize, AllocStr >::result(), stxxl::scoped_print_timer::scoped_print_timer(), stxxl::stable_ksort(), stxxl::ufs_file_base::ufs_file_base(), and stxxl::scoped_print_timer::~scoped_print_timer().

#define STXXL_VERBOSE0 (   x)    _STXXL_NOT_VERBOSE(x)

Definition at line 107 of file verbose.h.

#define STXXL_VERBOSE0_THIS (   x)    STXXL_VERBOSE0("[" << static_cast<void*>(this) << "] " << x)

Definition at line 133 of file verbose.h.

#define STXXL_VERBOSE1 (   x)    _STXXL_NOT_VERBOSE(x)

Definition at line 113 of file verbose.h.

Referenced by stxxl::priority_queue_local::ext_merger< BlockType, CompareType, Arity, AllocStr >::append_merger(), stxxl::btree::normal_leaf< KeyType, DataType, KeyCmp, LogNElem, BTreeType >::balance(), stxxl::btree::normal_node< KeyType, KeyCmp, RawSize, BTreeType >::begin(), stxxl::btree::btree< KeyType, DataType, CompareType, RawNodeSize, RawLeafSize, PDAllocStrategy >::begin(), stxxl::block_prefetcher< BlockType, BidIteratorType >::block_consumed(), stxxl::block_prefetcher< BlockType, BidIteratorType >::block_prefetcher(), stxxl::btree::btree< KeyType, DataType, CompareType, RawNodeSize, RawLeafSize, PDAllocStrategy >::btree(), stxxl::btree::btree< KeyType, DataType, CompareType, RawNodeSize, RawLeafSize, PDAllocStrategy >::bulk_construction(), stxxl::compute_prefetch_schedule(), stxxl::stream::basic_runs_creator< Input, CompareType, BlockSize, AllocStr >::compute_result(), stxxl::stream::runs_creator< use_push< ValueType >, CompareType, BlockSize, AllocStr >::compute_result(), stxxl::sort_helper::count_elements_less_equal(), stxxl::sort_local::create_runs(), stxxl::priority_queue_local::loser_tree< self_type, CompareType, MaxArity >::double_k(), stxxl::btree::normal_node< KeyType, KeyCmp, RawSize, BTreeType >::erase(), stxxl::btree::btree< KeyType, DataType, CompareType, RawNodeSize, RawLeafSize, PDAllocStrategy >::erase(), stxxl::stream::basic_runs_merger< typename runs_creator_type::sorted_runs_type, cmp_type, alloc_strategy_type >::fill_buffer_block(), stxxl::btree::normal_node< KeyType, KeyCmp, RawSize, BTreeType >::find(), stxxl::btree::btree< KeyType, DataType, CompareType, RawNodeSize, RawLeafSize, PDAllocStrategy >::find(), stxxl::priority_queue_local::ext_merger< BlockType, CompareType, Arity, AllocStr >::free_array(), stxxl::btree::normal_leaf< KeyType, DataType, KeyCmp, LogNElem, BTreeType >::fuse(), stxxl::prefetch_pool< BlockType >::hint(), stxxl::btree::normal_leaf< KeyType, DataType, KeyCmp, LogNElem, BTreeType >::increment_iterator(), stxxl::stream::basic_runs_merger< typename runs_creator_type::sorted_runs_type, cmp_type, alloc_strategy_type >::initialize(), stxxl::btree::normal_node< KeyType, KeyCmp, RawSize, BTreeType >::insert(), stxxl::btree::btree< KeyType, DataType, CompareType, RawNodeSize, RawLeafSize, PDAllocStrategy >::insert(), stxxl::btree::btree< KeyType, DataType, CompareType, RawNodeSize, RawLeafSize, PDAllocStrategy >::insert_into_root(), stxxl::priority_queue_local::ext_merger< BlockType, CompareType, Arity, AllocStr >::insert_segment(), stxxl::btree::normal_node< KeyType, KeyCmp, RawSize, BTreeType >::lower_bound(), stxxl::btree::btree< KeyType, DataType, CompareType, RawNodeSize, RawLeafSize, PDAllocStrategy >::lower_bound(), stxxl::priority_queue< ConfigType >::make_space_available(), stxxl::sort_local::merge_runs(), stxxl::disk_allocator::new_blocks(), stxxl::sequence< ValueType, BlockSize, AllocStr, SizeType >::stream::operator++(), stxxl::sequence< ValueType, BlockSize, AllocStr, SizeType >::reverse_stream::operator++(), stxxl::queue< ValueType, BlockSize, AllocStr, SizeType >::pop(), stxxl::sequence< ValueType, BlockSize, AllocStr, SizeType >::pop_back(), stxxl::sequence< ValueType, BlockSize, AllocStr, SizeType >::pop_front(), stxxl::block_prefetcher< BlockType, BidIteratorType >::pull_block(), stxxl::queue< ValueType, BlockSize, AllocStr, SizeType >::push(), stxxl::sequence< ValueType, BlockSize, AllocStr, SizeType >::push_back(), stxxl::sequence< ValueType, BlockSize, AllocStr, SizeType >::push_front(), stxxl::random_shuffle(), stxxl::prefetch_pool< BlockType >::read(), stxxl::sort_helper::refill_or_remove_empty_sequences(), stxxl::async_schedule_local::simulate_async_write(), stxxl::btree::normal_leaf< KeyType, DataType, KeyCmp, LogNElem, BTreeType >::split(), stxxl::stream::streamify(), stxxl::stream::streamify_sr(), stxxl::btree::normal_node< KeyType, KeyCmp, RawSize, BTreeType >::upper_bound(), stxxl::btree::btree< KeyType, DataType, CompareType, RawNodeSize, RawLeafSize, PDAllocStrategy >::upper_bound(), stxxl::stream::vector_iterator2stream_sr< InputIterator >::vector_iterator2stream_sr(), stxxl::block_prefetcher< BlockType, BidIteratorType >::wait(), stxxl::hash_map::block_cache< block_type >::~block_cache(), stxxl::block_manager::~block_manager(), stxxl::priority_queue_local::ext_merger< BlockType, CompareType, Arity, AllocStr >::~ext_merger(), stxxl::priority_queue_local::int_merger< value_type, comparator_type, IntKMAX >::~int_merger(), and stxxl::priority_queue_local::loser_tree< ValueType, CompareType, MaxArity >::~loser_tree().

#define STXXL_VERBOSE1_THIS (   x)    STXXL_VERBOSE1("[" << static_cast<void*>(this) << "] " << x)

Definition at line 136 of file verbose.h.

#define STXXL_VERBOSE2 (   x)    _STXXL_NOT_VERBOSE(x)

Definition at line 121 of file verbose.h.

Referenced by stxxl::disk_allocator::add_free_region(), stxxl::aligned_alloc(), stxxl::priority_queue_local::int_merger< value_type, comparator_type, IntKMAX >::append_array(), stxxl::btree::normal_leaf< KeyType, DataType, KeyCmp, LogNElem, BTreeType >::balance(), stxxl::stream::check_sorted_runs(), stxxl::priority_queue_local::loser_tree< ValueType, CompareType, MaxArity >::deallocate_segment(), stxxl::disk_allocator::delete_block(), stxxl::fileperblock_file< base_file_type >::discard(), stxxl::btree::normal_leaf< KeyType, DataType, KeyCmp, LogNElem, BTreeType >::dump(), stxxl::btree::normal_leaf< KeyType, DataType, KeyCmp, LogNElem, BTreeType >::erase(), stxxl::hash_map::iterator_map< self_type >::fix_iterators_2end(), stxxl::hash_map::iterator_map< self_type >::fix_iterators_2ext(), stxxl::hash_map::iterator_map< self_type >::fix_iterators_2int(), stxxl::priority_queue_local::int_merger< value_type, comparator_type, IntKMAX >::free_array(), stxxl::btree::normal_leaf< KeyType, DataType, KeyCmp, LogNElem, BTreeType >::fuse(), stxxl::grow_shrink_stack2< StackConfig >::grow_shrink_stack2(), stxxl::prefetch_pool< BlockType >::hint(), stxxl::priority_queue_local::ext_merger< BlockType, CompareType, Arity, AllocStr >::init(), stxxl::priority_queue_local::loser_tree< ValueType, CompareType, MaxArity >::insert_segment(), stxxl::loser_tree< RunCursorType, RunCursorCmpType >::loser_tree(), stxxl::disk_allocator::new_blocks(), stxxl::priority_queue_local::ext_merger< BlockType, CompareType, Arity, AllocStr >::sequence_state::operator++(), stxxl::normal_stack< StackConfig >::pop(), stxxl::grow_shrink_stack< StackConfig >::pop(), stxxl::grow_shrink_stack2< StackConfig >::pop(), stxxl::normal_stack< StackConfig >::push(), stxxl::grow_shrink_stack< StackConfig >::push(), stxxl::grow_shrink_stack2< StackConfig >::push(), stxxl::btree::iterator_map< self_type >::register_iterator(), stxxl::hash_map::iterator_map< self_type >::register_iterator(), stxxl::btree::iterator_map< self_type >::unregister_iterator(), stxxl::hash_map::iterator_map< self_type >::unregister_iterator(), stxxl::request_queue_impl_qwqr::worker(), stxxl::grow_shrink_stack2< StackConfig >::~grow_shrink_stack2(), stxxl::priority_queue_local::int_merger< value_type, comparator_type, IntKMAX >::~int_merger(), stxxl::priority_queue_local::loser_tree< ValueType, CompareType, MaxArity >::~loser_tree(), and stxxl::priority_queue_local::ext_merger< BlockType, CompareType, Arity, AllocStr >::sequence_state::~sequence_state().

#define STXXL_VERBOSE2_THIS (   x)    STXXL_VERBOSE2("[" << static_cast<void*>(this) << "] " << x)

Definition at line 139 of file verbose.h.

Referenced by stxxl::serving_request::serve().

#define STXXL_VERBOSE_LEVEL   -1

Definition at line 69 of file verbose.h.