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.
initialize.hpp File Reference
#include "timemory/enum.h"
#include "timemory/runtime/types.hpp"
#include <initializer_list>
#include <string>
#include <type_traits>
#include <vector>
+ Include dependency graph for initialize.hpp:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  tim
 

Functions

template<template< typename... > class CompList, typename... CompTypes, typename EnumT = int>
void tim::initialize (CompList< CompTypes... > &obj, std::initializer_list< EnumT > components)
 
template<template< typename... > class CompList, typename... CompTypes>
void tim::initialize (CompList< CompTypes... > &obj, std::initializer_list< std::string > components)
 
template<template< typename... > class CompList, typename... CompTypes, typename... ExtraArgs, template< typename, typename... > class Container>
void tim::initialize (CompList< CompTypes... > &obj, const Container< std::string, ExtraArgs... > &components)
 
template<template< typename... > class CompList, typename... CompTypes>
void tim::initialize (CompList< CompTypes... > &obj, const std::string &components)
 this is for initializing with a string More...
 
template<template< typename... > class CompList, typename... CompTypes, template< typename, typename... > class Container, typename Intp , typename... ExtraArgs, typename std::enable_if< std::is_integral< Intp >::value||std::is_same< Intp, TIMEMORY_NATIVE_COMPONENT >::value, int >::type >
void tim::initialize (CompList< CompTypes... > &obj, const Container< Intp, ExtraArgs... > &components)
 description: use this function to initialize a auto_list or component_list from a list of enumerations More...
 
template<template< typename... > class CompList, typename... CompTypes, template< typename, typename... > class Container, typename... ExtraArgs>
void tim::initialize (CompList< CompTypes... > &obj, const Container< const char *, ExtraArgs... > &components)
 
template<template< typename... > class CompList, typename... CompTypes>
void tim::initialize (CompList< CompTypes... > &obj, const int ncomponents, const int *components)
 

Detailed Description

Provides implementation for initialize, enumerate_components which regularly change as more features are added

Definition in file initialize.hpp.