HEBench
hebench::Utilities::TimingReportEx Class Reference

#include <hebench_utilities_harness.h>

Inheritance diagram for hebench::Utilities::TimingReportEx:
Collaboration diagram for hebench::Utilities::TimingReportEx:

Public Member Functions

 TimingReportEx (const std::string &header=std::string())
 
 ~TimingReportEx () override
 
template<class TimeInterval >
void addEvent (hebench::Common::TimingReportEvent::Ptr p_event)
 
template<class TimeInterval >
void addEvent (hebench::Common::TimingReportEvent::Ptr p_event, const std::string &event_type_name)
 
void addEvent (const TimingReportEventC &p_event)
 
- Public Member Functions inherited from hebench::ReportGen::cpp::TimingReport
 TimingReport (const TimingReport &)=delete
 
 TimingReport (const std::string &header=std::string())
 
 TimingReport (TimingReport &&)
 
virtual ~TimingReport ()
 
TimingReportoperator= (TimingReport &&)
 
void setHeader (const std::string &new_header)
 
void appendHeader (const std::string &new_header, bool new_line=true)
 
void prependHeader (const std::string &new_header, bool new_line=true)
 
std::string getHeader () const
 
void setFooter (const std::string &new_footer)
 
void appendFooter (const std::string &new_header, bool new_line=true)
 
void prependFooter (const std::string &new_header, bool new_line=true)
 
std::string getFooter () const
 
void addEventType (uint32_t event_type_id, const std::string &event_type_header, bool is_main_event=false)
 Adds a new event type to the types of events. More...
 
bool hasEventType (uint32_t event_type_id) const
 
std::string getEventTypeHeader (uint32_t event_type_id) const
 
uint64_t getEventTypeCount () const
 
uint32_t getEventType (uint64_t index) const
 Retrieve an event type ID. More...
 
uint32_t getMainEventType () const
 
void addEvent (const TimingReportEventC &p_event)
 
void getEvent (TimingReportEventC &p_event, uint64_t index) const
 
uint64_t getEventCount () const
 
uint64_t getEventCapacity () const
 
void setEventCapacity (uint64_t new_capacity)
 
void clear ()
 
void save2CSV (const std::string &filename)
 
std::string convert2CSV ()
 

Static Public Member Functions

template<class TimeInterval >
static hebench::ReportGen::TimingReportEventC convert2C (const hebench::Common::TimingReportEvent &timing_event)
 
- Static Public Member Functions inherited from hebench::ReportGen::cpp::TimingReport
static TimingReport loadReportFromCSV (const std::string &s_csv_content)
 
static TimingReport loadReportFromCSVFile (const std::string &filename)
 
template<class TimeInterval = std::ratio<1, 1>>
static double computeElapsedWallTime (const TimingReportEventC &event)
 
template<class TimeInterval = std::ratio<1, 1>>
static double computeElapsedCPUTime (const TimingReportEventC &event)
 

Detailed Description

Definition at line 93 of file hebench_utilities_harness.h.

Constructor & Destructor Documentation

◆ TimingReportEx()

hebench::Utilities::TimingReportEx::TimingReportEx ( const std::string &  header = std::string())
inline

Definition at line 99 of file hebench_utilities_harness.h.

◆ ~TimingReportEx()

hebench::Utilities::TimingReportEx::~TimingReportEx ( )
inlineoverride

Definition at line 101 of file hebench_utilities_harness.h.

Member Function Documentation

◆ addEvent() [1/3]

void hebench::ReportGen::cpp::TimingReport::addEvent

Definition at line 196 of file hebench_report_cpp.cpp.

◆ addEvent() [2/3]

template<class TimeInterval >
void hebench::Utilities::TimingReportEx::addEvent ( hebench::Common::TimingReportEvent::Ptr  p_event)
inline

Definition at line 49 of file hebench_utilities_harness.inl.

◆ addEvent() [3/3]

template<class TimeInterval >
void hebench::Utilities::TimingReportEx::addEvent ( hebench::Common::TimingReportEvent::Ptr  p_event,
const std::string &  event_type_name 
)
inline

Definition at line 55 of file hebench_utilities_harness.inl.

◆ convert2C()

template<class TimeInterval >
hebench::ReportGen::TimingReportEventC hebench::Utilities::TimingReportEx::convert2C ( const hebench::Common::TimingReportEvent &  timing_event)
inlinestatic

Definition at line 74 of file hebench_utilities_harness.inl.


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