Parallel Analog Ensemble
Public Member Functions | Private Member Functions | Private Attributes | List of all members
Profiler Class Reference

#include <Profiler.h>

Public Member Functions

 Profiler (std::size_t num_sessions=10)
 
virtual ~Profiler ()
 
void start ()
 
void log_time_session (const std::string &session_name)
 
void append_sessions (const Profiler &)
 
void operator+= (const Profiler &)
 
void summary (std::ostream &) const
 

Private Member Functions

int max_name_width_ () const
 

Private Attributes

std::vector< std::string > session_names_
 
std::vector< clock_t > ptimes_
 

Constructor & Destructor Documentation

◆ Profiler()

Profiler::Profiler ( std::size_t  num_sessions = 10)

◆ ~Profiler()

Profiler::~Profiler ( )
virtual

Member Function Documentation

◆ append_sessions()

void Profiler::append_sessions ( const Profiler new_sessions)

◆ log_time_session()

void Profiler::log_time_session ( const std::string &  session_name)

◆ max_name_width_()

int Profiler::max_name_width_ ( ) const
private

◆ operator+=()

void Profiler::operator+= ( const Profiler rhs)

◆ start()

void Profiler::start ( )

◆ summary()

void Profiler::summary ( std::ostream &  ) const

Member Data Documentation

◆ ptimes_

std::vector<clock_t> Profiler::ptimes_
private

◆ session_names_

std::vector<std::string> Profiler::session_names_
private

The documentation for this class was generated from the following files: