MADNESS 0.10.1
Classes | Namespaces | Functions
worldmem.h File Reference
#include <madness/madness_config.h>
#include <string>
#include <cstddef>
#include <fstream>
#include <sstream>
Include dependency graph for worldmem.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  madness::WorldMemInfo
 Used to output memory statistics and control tracing, etc. More...
 

Namespaces

namespace  madness
 Namespace for all elements and tools of MADNESS.
 
namespace  madness::detail
 

Functions

void madness::print_meminfo_disable ()
 disables print_meminfo() profiling (i.e. calling it is a no-op)
 
void madness::print_meminfo_enable ()
 
bool madness::print_meminfo_enabled ()
 
bool & madness::detail::print_meminfo_flag_accessor ()
 
bool madness::print_meminfo_keep_ostream_open ()
 
void madness::print_meminfo_keep_ostream_open (bool keep_open)
 
std::basic_ofstream< wchar_t > & madness::print_meminfo_ostream (int rank, const std::string filename_prefix)
 
template<typename Char >
const Char * madness::detail::Vm_cstr ()
 
WorldMemInfomadness::world_mem_info ()
 Returns pointer to internal structure.
 
print_meminfo

These functions are useful to instrument aggregate (not fine-grained, like WorldMemInfo) memory profiling.

Note
To make this functionality usable must set the ENABLE_MEM_PROFILE CMake cache variable to ON
template<typename String >
void madness::print_meminfo (int rank, const String &tag, const std::string filename_prefix=std::string("MEMORY"), bool verbose=false)
 print aggregate memory stats to file filename_prefix.<rank> , tagged with tag