34 #if defined(LIBMESH_ENABLE_REFERENCE_COUNTING) && defined(DEBUG) 49 #if defined(LIBMESH_ENABLE_REFERENCE_COUNTING) && defined(DEBUG) 51 std::ostringstream oss;
54 <<
" ---------------------------------------------------------------------------- \n" 55 <<
"| Reference count information |\n" 56 <<
" ---------------------------------------------------------------------------- \n";
60 const std::string
name(pr.first);
61 const unsigned int creations = pr.second.first;
62 const unsigned int destructions = pr.second.second;
64 oss <<
"| " <<
name <<
" reference count information:\n" 65 <<
"| Creations: " << creations <<
'\n' 66 <<
"| Destructions: " << destructions <<
'\n';
69 oss <<
" ---------------------------------------------------------------------------- \n";
85 #if defined(LIBMESH_ENABLE_REFERENCE_COUNTING) && defined(DEBUG) std::string name(const ElemQuality q)
static Threads::atomic< unsigned int > _n_objects
std::map< std::string, std::pair< unsigned int, unsigned int > > Counts
static std::string get_info()
static Threads::spin_mutex _mutex
static bool _enable_print_counter
static void enable_print_counter_info()
static void print_info(std::ostream &out=libMesh::out)
tbb::spin_mutex spin_mutex
static void disable_print_counter_info()