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.
|
A diagnostic component when prints messages via start(...) and stores messages via store(...). The stored messages are returned via the get() member function. If bundled alongside the timestamp component, the timestamp will be added to the stored message. More...
#include "timemory/components/printer/printer.hpp"
Public Types | |
using | value_type = void |
using | storage_type = empty_storage |
using | base_type = void |
Public Member Functions | |
printer ()=default | |
~printer ()=default | |
printer (printer &&)=default | |
printer (const printer &) | |
printer & | operator= (printer &&)=default |
printer & | operator= (const printer &) |
std::string | get () const |
void | set_prefix (const char *) |
bool | assemble (timestamp *) |
template<typename... Args> | |
auto | start (Args &&... args) -> decltype(TIMEMORY_FOLD_EXPRESSION(std::declval< std::stringstream >()<< args), void()) |
template<typename... Args> | |
auto | store (Args &&... args) -> decltype(TIMEMORY_FOLD_EXPRESSION(std::declval< std::stringstream >()<< args), void()) |
Static Public Member Functions | |
static std::string | label () |
static std::string | description () |
static std::string | get_label () |
static std::string | get_description () |
template<typename... Args> | |
static opaque | get_opaque (Args &&...) |
A diagnostic component when prints messages via start(...) and stores messages via store(...). The stored messages are returned via the get() member function. If bundled alongside the timestamp component, the timestamp will be added to the stored message.
Definition at line 43 of file printer.hpp.
|
inherited |
Definition at line 67 of file declaration.hpp.
|
inherited |
Definition at line 66 of file declaration.hpp.
using tim::component::printer::value_type = void |
Definition at line 47 of file printer.hpp.
|
default |
|
default |
|
default |
tim::component::printer::printer | ( | const printer & | rhs | ) |
Definition at line 70 of file printer.cpp.
bool tim::component::printer::assemble | ( | timestamp * | _wc | ) |
Definition at line 106 of file printer.cpp.
|
static |
Definition at line 50 of file printer.cpp.
Referenced by get_description().
std::string tim::component::printer::get | ( | ) | const |
Definition at line 92 of file printer.cpp.
|
static |
|
static |
|
inlinestaticinherited |
Definition at line 72 of file declaration.hpp.
|
static |
Definition at line 78 of file printer.cpp.
void tim::component::printer::set_prefix | ( | const char * | _prefix | ) |
auto tim::component::printer::start | ( | Args &&... | args | ) | -> decltype(TIMEMORY_FOLD_EXPRESSION(std::declval<std::stringstream>() << args), void()) |
auto tim::component::printer::store | ( | Args &&... | args | ) | -> decltype(TIMEMORY_FOLD_EXPRESSION(std::declval<std::stringstream>() << args), void()) |
Definition at line 107 of file printer.hpp.
References tim::trait::as_string(), and TIMEMORY_JOIN.