5 #ifndef _HEBench_Harness_Utilities_H_0596d40a3cce4b108a81595c50eb286d
6 #define _HEBench_Harness_Utilities_H_0596d40a3cce4b108a81595c50eb286d
14 #include "hebench/modules/timer/include/timer.h"
60 bool output_row_index =
false,
79 bool output_row_index =
false,
85 static std::mt19937 m_rand;
88 static decltype(m_rand) &
get() {
return m_rand; }
104 template <
class TimeInterval>
105 void addEvent(hebench::Common::TimingReportEvent::Ptr p_event);
106 template <
class TimeInterval>
107 void addEvent(hebench::Common::TimingReportEvent::Ptr p_event,
108 const std::string &event_type_name);
110 template <
class TimeInterval>
114 template <
class TimeInterval>
115 void addEvent(hebench::Common::TimingReportEvent::Ptr p_event,
116 const char *event_type_name);
void addEvent(const TimingReportEventC &p_event)
TimingReport(const TimingReport &)=delete
static void setRandomSeed()
static decltype(m_rand) & get()
~TimingReportEx() override
TimingReportEx(const std::string &header=std::string())
static hebench::ReportGen::TimingReportEventC convert2C(const hebench::Common::TimingReportEvent &timing_event)
void addEvent(const TimingReportEventC &p_event)
DataType
Defines data types for a workload.
Structure to contain flexible data.
std::string convertToDirectoryName(const std::string &s, bool to_lowercase=true)
Converts a string to directory name friendly.
void printArraysAsColumns(std::ostream &os, const hebench::APIBridge::NativeDataBuffer **p_buffers, std::size_t count, hebench::APIBridge::DataType data_type, bool output_row_index=false, const char *separator=" ")
Writes the collection of NativeDataBuffer as columns to the specified output stream.