HEBench
|
Extracts and maintains the timing report events of the same type. More...
Public Member Functions | |
EventType (const cpp::TimingReport &report, std::uint32_t event_id) | |
Constructs an event type from a report. More... | |
EventType (const std::vector< double > &cpu_events, const std::vector< double > &wall_events, std::uint32_t event_id, const std::string_view &event_name) | |
std::uint32_t | getID () const |
ID of the event type. More... | |
const std::string & | getName () const |
Name of the event type as per the report. More... | |
const std::vector< double > & | getCPUEvents () const |
Collection of contained CPU-timed events of the same type extracted from the report. More... | |
const std::vector< double > & | getWallEvents () const |
Collection of contained wall-timed events of the same type extracted from the report. More... | |
void | computeStats (ReportEventTypeStats &result) const |
Computes statistics for this event type based on the contained events. More... | |
ReportEventTypeStats | computeStats () const |
Computes statistics for this event type based on the contained events. More... | |
Extracts and maintains the timing report events of the same type.
Maintains a collection of timing report events of the same type extracted from a report. The events' timings are converted to elapsed times in seconds.
Definition at line 60 of file hebench_report_stats.cpp.
hebench::ReportGen::EventType::EventType | ( | const cpp::TimingReport & | report, |
std::uint32_t | event_id | ||
) |
Constructs an event type from a report.
[in] | report | Report from which to extract the events. |
[in] | event_id | ID of type of event to extract. |
Definition at line 116 of file hebench_report_stats.cpp.
hebench::ReportGen::EventType::EventType | ( | const std::vector< double > & | cpu_events, |
const std::vector< double > & | wall_events, | ||
std::uint32_t | event_id, | ||
const std::string_view & | event_name | ||
) |
Definition at line 161 of file hebench_report_stats.cpp.
|
inline |
Computes statistics for this event type based on the contained events.
All timings for the stats are in seconds.
Definition at line 102 of file hebench_report_stats.cpp.
void hebench::ReportGen::EventType::computeStats | ( | ReportEventTypeStats & | result | ) | const |
Computes statistics for this event type based on the contained events.
[out] | result | ReportEventTypeStats to receive the statistical computation results. |
All timings for the stats are in seconds.
Definition at line 173 of file hebench_report_stats.cpp.
|
inline |
Collection of contained CPU-timed events of the same type extracted from the report.
Definition at line 83 of file hebench_report_stats.cpp.
|
inline |
ID of the event type.
Definition at line 75 of file hebench_report_stats.cpp.
|
inline |
Name of the event type as per the report.
Definition at line 79 of file hebench_report_stats.cpp.
|
inline |
Collection of contained wall-timed events of the same type extracted from the report.
Definition at line 87 of file hebench_report_stats.cpp.