timemory 3.3.0
Modular C++ Toolkit for Performance Analysis and Logging. Profiling API and Tools for C, C++, CUDA, Fortran, and Python. The C++ template API is essentially a framework to creating tools: it is designed to provide a unifying interface for recording various performance measurements alongside data logging and interfaces to other tools.
|
Typedefs | |
using | user_bundle_spec_t = std::function< std::string()> |
using | user_bundle_variables_t = std::unordered_map< size_t, std::vector< user_bundle_spec_t > > |
Functions | |
user_bundle_variables_t & | get_user_bundle_variables (TIMEMORY_API) |
static so that projects cannot globally change this More... | |
user_bundle_variables_t & | get_user_bundle_variables (project::kokkosp) |
std::vector< TIMEMORY_COMPONENT > | get_bundle_components (const std::vector< user_bundle_spec_t > &_priority) |
template<typename ApiT > | |
user_bundle_variables_t & | get_user_bundle_variables (ApiT) |
non-static so that projects can globally change this for their project/API More... | |
template<size_t Idx, typename Api , typename AltApi = Api> | |
void | initialize_bundle (AltApi _api=AltApi{}) |
template<template< typename... > class CompList, typename... CompTypes, typename std::enable_if< sizeof...(CompTypes) !=0, int >::type = 0> | |
void | initialize (CompList< CompTypes... > &obj, const std::string &env_var, const std::string &default_env) |
template<typename T , typename... Args> | |
void | initialize (T *obj, Args &&... args) |
template<size_t Idx, typename Type , template< size_t, typename > class Bundle> | |
void | insert (Bundle< Idx, Type > &obj, const std::string &env_var, const std::string &default_env) |
template<typename T , typename... Args> | |
void | insert (T *obj, Args &&... args) |
template<typename Bundle , typename... Args> | |
void | configure (const std::string &env_var, const std::string &default_env, Args &&... args) |
using tim::env::user_bundle_spec_t = typedef std::function<std::string()> |
Definition at line 63 of file components.hpp.
using tim::env::user_bundle_variables_t = typedef std::unordered_map<size_t, std::vector<user_bundle_spec_t> > |
Definition at line 65 of file components.hpp.
void tim::env::configure | ( | const std::string & | env_var, |
const std::string & | default_env, | ||
Args &&... | args | ||
) |
Definition at line 301 of file types.hpp.
References tim::delimit(), tim::enumerate_components(), and tim::get_env().
std::vector< TIMEMORY_COMPONENT > tim::env::get_bundle_components | ( | const std::vector< user_bundle_spec_t > & | _priority | ) |
Definition at line 99 of file components.cpp.
References CONDITIONAL_PRINT_HERE, tim::delimit(), tim::enumerate_components(), and tim::settings::instance().
|
inline |
non-static so that projects can globally change this for their project/API
Definition at line 71 of file components.hpp.
user_bundle_variables_t & tim::env::get_user_bundle_variables | ( | project::kokkosp | ) |
Definition at line 81 of file components.cpp.
References tim::components, tim::global_components, tim::kokkos_components, tim::profiler_components, and tim::trace_components.
user_bundle_variables_t & tim::env::get_user_bundle_variables | ( | TIMEMORY_API | ) |
static so that projects cannot globally change this
Definition at line 43 of file components.cpp.
References tim::components, tim::global_components, tim::mpip_components, tim::ncclp_components, tim::ompt_components, tim::profiler_components, and tim::trace_components.
void tim::env::initialize | ( | CompList< CompTypes... > & | obj, |
const std::string & | env_var, | ||
const std::string & | default_env | ||
) |
Definition at line 252 of file types.hpp.
References tim::delimit(), tim::enumerate_components(), tim::get_env(), and tim::initialize().
Referenced by initialize().
void tim::env::initialize | ( | T * | obj, |
Args &&... | args | ||
) |
void tim::env::initialize_bundle | ( | AltApi | _api = AltApi{} | ) |
Definition at line 97 of file components.hpp.
void tim::env::insert | ( | Bundle< Idx, Type > & | obj, |
const std::string & | env_var, | ||
const std::string & | default_env | ||
) |
Definition at line 281 of file types.hpp.
References tim::delimit(), tim::enumerate_components(), and tim::get_env().
Referenced by insert().