#include "timemory/storage/types.hpp"
Definition at line 81 of file types.hpp.
◆ string_t
◆ this_type
◆ storage() [1/3]
Definition at line 66 of file definition.hpp.
77 "Error! base::storage is master but is not zero instance", _id,
90 "Warning! base::storage is not master but is zero instance", _id,
std::shared_ptr< settings > m_settings
std::shared_ptr< manager > m_manager
static pointer_t instance()
Get a shared pointer to the instance for the current thread.
static pointer_t shared_instance()
#define CONDITIONAL_PRINT_HERE(CONDITION,...)
#define TIMEMORY_EXCEPTION(...)
References CONDITIONAL_PRINT_HERE, m_instance_id, m_is_master, m_label, m_settings, PRINT_HERE, and TIMEMORY_EXCEPTION.
◆ ~storage()
◆ storage() [2/3]
tim::base::storage::storage |
( |
const this_type & |
| ) |
|
|
explicitdelete |
◆ storage() [3/3]
◆ add_file_output()
◆ add_hash_id() [1/2]
Definition at line 148 of file definition.hpp.
hash_map_ptr_t m_hash_ids
hash_value_t add_hash_id(hash_map_ptr_t &_hash_map, string_view_cref_t _prefix)
add an string to the given hash-map (if it doesn't already exist) and return the hash
char const std::string & _prefix
References tim::_prefix, and m_hash_ids.
◆ add_hash_id() [2/2]
◆ add_json_output()
void tim::base::storage::add_json_output |
( |
const string_t & |
_label, |
|
|
const string_t & |
_file |
|
) |
| |
|
inlineprotected |
◆ add_text_output()
void tim::base::storage::add_text_output |
( |
const string_t & |
_label, |
|
|
const string_t & |
_file |
|
) |
| |
|
inlineprotected |
◆ base_instance() [1/2]
Definition at line 994 of file declaration.hpp.
999 static thread_local base::storage*
_ret =
nullptr;
1010 _ret =
static_cast<base::storage*
>(storage_type::instance());
const hash_alias_ptr_t hash_value_t std::string *& _ret
std::unique_lock< mutex_t > auto_lock_t
Unique lock type around mutex_t.
static bool get(enable_if_t< is_available< U >::value &&get_value< U >(), int >=0)
GET specialization if component is available.
◆ base_instance() [2/2]
static this_type * tim::base::storage::base_instance |
( |
| ) |
|
|
static |
◆ cleanup()
virtual void tim::base::storage::cleanup |
( |
| ) |
|
|
inlinevirtual |
◆ data_init()
virtual bool tim::base::storage::data_init |
( |
| ) |
|
|
inlinevirtual |
◆ disable()
virtual void tim::base::storage::disable |
( |
| ) |
|
|
inlinevirtual |
◆ finalize()
virtual void tim::base::storage::finalize |
( |
| ) |
|
|
inlinevirtual |
◆ free_shared_manager()
◆ get_hash_aliases()
◆ get_hash_ids()
◆ global_init()
virtual bool tim::base::storage::global_init |
( |
| ) |
|
|
inlinevirtual |
◆ initialize()
virtual void tim::base::storage::initialize |
( |
| ) |
|
|
inlinevirtual |
◆ instance_id()
int64_t tim::base::storage::instance_id |
( |
| ) |
const |
|
inline |
◆ is_initialized()
bool tim::base::storage::is_initialized |
( |
| ) |
const |
|
inline |
◆ operator=() [1/2]
◆ operator=() [2/2]
◆ print()
virtual void tim::base::storage::print |
( |
| ) |
|
|
inlinevirtual |
◆ stack_clear()
virtual void tim::base::storage::stack_clear |
( |
| ) |
|
|
inlinevirtual |
◆ stop_profiler()
Definition at line 120 of file definition.hpp.
123# if defined(TIMEMORY_USE_GPERFTOOLS) || defined(TIMEMORY_USE_GPERFTOOLS_PROFILER) || \
124 defined(TIMEMORY_USE_GPERFTOOLS_TCMALLOC)
128 gperftools::profiler_stop();
129 }
catch(std::exception& e)
131 std::cerr <<
"Error calling gperftools::profiler_stop(): " << e.what()
132 <<
". Continuing..." << std::endl;
static std::atomic< int > & storage_once_flag()
References storage_once_flag().
◆ storage_once_flag()
◆ thread_init()
virtual bool tim::base::storage::thread_init |
( |
| ) |
|
|
inlinevirtual |
◆ m_data_init
bool tim::base::storage::m_data_init = false |
|
protected |
◆ m_finalized
bool tim::base::storage::m_finalized = false |
|
protected |
◆ m_global_init
bool tim::base::storage::m_global_init = false |
|
protected |
◆ m_hash_aliases
◆ m_hash_ids
◆ m_initialized
bool tim::base::storage::m_initialized = false |
|
protected |
◆ m_instance_id
int64_t tim::base::storage::m_instance_id = -1 |
|
protected |
◆ m_is_master
bool tim::base::storage::m_is_master = false |
|
protected |
◆ m_label
string_t tim::base::storage::m_label = "" |
|
protected |
◆ m_manager
std::shared_ptr<manager> tim::base::storage::m_manager = {} |
|
protected |
◆ m_node_init
bool tim::base::storage::m_node_init = dmp::is_initialized() |
|
protected |
◆ m_node_rank
int32_t tim::base::storage::m_node_rank = dmp::rank() |
|
protected |
◆ m_node_size
int32_t tim::base::storage::m_node_size = dmp::size() |
|
protected |
◆ m_settings
std::shared_ptr<settings> tim::base::storage::m_settings = {} |
|
protected |
◆ m_thread_idx
uint32_t tim::base::storage::m_thread_idx = threading::get_id() |
|
protected |
◆ m_thread_init
bool tim::base::storage::m_thread_init = false |
|
protected |
The documentation for this class was generated from the following files: