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.
stream.hpp File Reference
#include "timemory/mpl/types.hpp"
#include "timemory/settings/declaration.hpp"
#include "timemory/utility/types.hpp"
#include "timemory/utility/utility.hpp"
#include <algorithm>
#include <cassert>
#include <iomanip>
#include <iostream>
#include <map>
#include <set>
#include <string>
#include <vector>
+ Include dependency graph for stream.hpp:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  tim::data::base::stream_entry
 
struct  tim::data::header
 
struct  tim::data::entry
 
struct  tim::data::stream
 
struct  tim::data::header_stream< Tp >
 

Namespaces

namespace  tim
 
namespace  tim::data
 
namespace  tim::data::base
 
namespace  tim::utility
 

Typedefs

using tim::utility::entry = data::entry
 
using tim::utility::header = data::header
 
using tim::utility::stream = data::stream
 
template<typename Tp >
using tim::utility::header_stream = data::header_stream< Tp >
 

Functions

template<typename... ArgsT>
void tim::data::write_header (stream &_os, const std::string &_label, std::ios_base::fmtflags _fmt={}, int _width=0, int _prec=0, bool _center=true)
 
template<typename Tp >
void tim::data::write_entry (stream &_os, const std::string &_label, const Tp &_value, bool c=false, bool l=false)
 
void tim::data::write_entry (stream &_os, const std::string &_label, const std::string &_value, bool c=false, bool=false)
 
template<typename Tp >
void tim::data::write_entry (stream &_os, const std::vector< std::string > &_label, const Tp &_value, bool c=false, bool l=false)
 
template<typename Tp >
void tim::data::write_entry (stream &_os, const std::string &_label, const std::vector< std::string > &_value, bool c=false, bool l=false)
 
template<typename Tp , typename Up >
void tim::data::write_entry (stream &_os, const std::string &_label, const std::pair< Tp, Up > &_value, bool c=false, bool l=false)
 
template<typename Tp , typename Up >
void tim::data::write_entry (stream &_os, const std::vector< std::string > &_labels, const std::pair< Tp, Up > &_value, bool c=false, bool l=false)
 
template<typename Tp , typename... Alloc>
void tim::data::write_entry (stream &_os, const std::string &_label, const std::vector< Tp, Alloc... > &_values, bool c=false, bool l=false)
 
template<typename Tp , typename... Alloc>
void tim::data::write_entry (stream &_os, const std::vector< std::string > &_labels, const std::vector< Tp, Alloc... > &_values, bool c=false, bool l=false)
 
template<typename Tp , size_t N>
void tim::data::write_entry (stream &_os, const std::string &_label, const std::array< Tp, N > &_values, bool c=false, bool l=false)
 
template<typename Tp , size_t N>
void tim::data::write_entry (stream &_os, const std::vector< std::string > &_labels, const std::array< Tp, N > &_values, bool c=false, bool l=false)
 
template<typename... Types, size_t... Idx>
void tim::data::write_entry (stream &_os, const std::string &_label, const std::tuple< Types... > &_values, index_sequence< Idx... >, bool c=false, bool l=false)
 
template<typename... Types, size_t... Idx>
void tim::data::write_entry (stream &_os, const std::vector< std::string > &_labels, const std::tuple< Types... > &_values, index_sequence< Idx... >, bool c=false, bool l=false)
 
template<typename... Types>
void tim::data::write_entry (stream &_os, const std::string &_labels, const std::tuple< Types... > &_values, bool c=false, bool l=false)
 
template<typename... Types>
void tim::data::write_entry (stream &_os, const std::vector< std::string > &_labels, const std::tuple< Types... > &_values, bool c=false, bool l=false)
 
template<typename... Args>
auto tim::utility::write_header (Args &&... args)
 
template<typename... Args>
auto tim::utility::write_entry (Args &&... args)
 

Detailed Description

Provides a simple stream type that generates a vector of strings for column alignment

Definition in file stream.hpp.