HEBench
hebench::ReportGen::ReportStats Class Reference

#include <hebench_report_stats.h>

Public Member Functions

 ReportStats (const cpp::TimingReport &report)
 
const std::string & getHeader () const
 
const std::string & getFooter () const
 
std::uint64_t getEventTypeCount () const
 
const ReportEventTypeStatsgetEventTypeStats (std::uint64_t index) const
 
const ReportEventTypeStatsgetEventTypeStatsByID (std::uint32_t id) const
 
std::uint64_t getMainEventTypeStatsIndex () const
 
std::uint32_t getMainEventTypeID () const
 
const ReportEventTypeStatsgetMainEventTypeStats () const
 
void generateCSV (std::ostream &os, char ch_prefix)
 Generates complete CSV stats for this report. More...
 
void generateCSV (std::ostream &os, const ReportEventTypeStats &stats, char ch_prefix, bool new_line=true)
 Generates a row of CSV for stats for a single event type. More...
 
void generateSummaryCSV (std::ostream &os, char ch_prefix)
 Generates summary CSV for this report. More...
 
void generateSummaryCSV (std::ostream &os, const ReportEventTypeStats &stats, char ch_prefix, bool new_line=true)
 Generates a row of CSV summary for a single event type. More...
 

Detailed Description

Definition at line 88 of file hebench_report_stats.h.

Constructor & Destructor Documentation

◆ ReportStats()

hebench::ReportGen::ReportStats::ReportStats ( const cpp::TimingReport report)

Definition at line 212 of file hebench_report_stats.cpp.

Member Function Documentation

◆ generateCSV() [1/2]

void hebench::ReportGen::ReportStats::generateCSV ( std::ostream &  os,
char  ch_prefix 
)

Generates complete CSV stats for this report.

Parameters
os
ch_prefix

Definition at line 300 of file hebench_report_stats.cpp.

◆ generateCSV() [2/2]

void hebench::ReportGen::ReportStats::generateCSV ( std::ostream &  os,
const ReportEventTypeStats stats,
char  ch_prefix,
bool  new_line = true 
)

Generates a row of CSV for stats for a single event type.

Parameters
os
index
ch_prefix
[in]new_lineIf true, a new line is added at the end of the row.

Definition at line 325 of file hebench_report_stats.cpp.

◆ generateSummaryCSV() [1/2]

void hebench::ReportGen::ReportStats::generateSummaryCSV ( std::ostream &  os,
char  ch_prefix 
)

Generates summary CSV for this report.

Parameters
os
ch_prefix

Definition at line 371 of file hebench_report_stats.cpp.

◆ generateSummaryCSV() [2/2]

void hebench::ReportGen::ReportStats::generateSummaryCSV ( std::ostream &  os,
const ReportEventTypeStats stats,
char  ch_prefix,
bool  new_line = true 
)

Generates a row of CSV summary for a single event type.

Parameters
os
stats
ch_prefix
[in]new_lineIf true, a new line is added at the end of the row.

Definition at line 394 of file hebench_report_stats.cpp.

◆ getEventTypeCount()

std::uint64_t hebench::ReportGen::ReportStats::getEventTypeCount ( ) const
inline

Definition at line 96 of file hebench_report_stats.h.

◆ getEventTypeStats()

const ReportEventTypeStats & hebench::ReportGen::ReportStats::getEventTypeStats ( std::uint64_t  index) const

Definition at line 272 of file hebench_report_stats.cpp.

◆ getEventTypeStatsByID()

const ReportEventTypeStats & hebench::ReportGen::ReportStats::getEventTypeStatsByID ( std::uint32_t  id) const

Definition at line 285 of file hebench_report_stats.cpp.

◆ getFooter()

const std::string& hebench::ReportGen::ReportStats::getFooter ( ) const
inline

Definition at line 94 of file hebench_report_stats.h.

◆ getHeader()

const std::string& hebench::ReportGen::ReportStats::getHeader ( ) const
inline

Definition at line 93 of file hebench_report_stats.h.

◆ getMainEventTypeID()

std::uint32_t hebench::ReportGen::ReportStats::getMainEventTypeID ( ) const
inline

Definition at line 100 of file hebench_report_stats.h.

◆ getMainEventTypeStats()

const ReportEventTypeStats & hebench::ReportGen::ReportStats::getMainEventTypeStats ( ) const

Definition at line 295 of file hebench_report_stats.cpp.

◆ getMainEventTypeStatsIndex()

std::uint64_t hebench::ReportGen::ReportStats::getMainEventTypeStatsIndex ( ) const

Definition at line 290 of file hebench_report_stats.cpp.


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