HEBench
hebench_report_types.h
Go to the documentation of this file.
1 
2 // Copyright (C) 2021 Intel Corporation
3 // SPDX-License-Identifier: Apache-2.0
4 
5 #ifndef _HEBench_Harness_Report_Types_H_0596d40a3cce4b108a81595c50eb286d
6 #define _HEBench_Harness_Report_Types_H_0596d40a3cce4b108a81595c50eb286d
7 
8 #include <stdint.h>
9 
10 namespace hebench {
11 namespace ReportGen {
12 
13 extern "C"
14 {
15 
16 #define MAX_DESCRIPTION_BUFFER_SIZE 256
17 #define MAX_SYMBOL_BUFFER_SIZE 4
18 #define MAX_TIME_REPORT_EVENT_DESCRIPTION_SIZE 256
19 
21  {
28  uint32_t event_type_id;
30  double cpu_time_end;
32  double wall_time_end;
57  };
59 
60  struct _UnitPrefix
61  {
65  double value;
81  };
82  typedef struct _UnitPrefix TimingPrefixedSeconds;
83 }
84 
85 } // namespace ReportGen
86 } // namespace hebench
87 
88 #endif // defined _HEBench_Harness_Report_Types_H_0596d40a3cce4b108a81595c50eb286d
#define MAX_TIME_REPORT_EVENT_DESCRIPTION_SIZE
#define MAX_DESCRIPTION_BUFFER_SIZE
#define MAX_SYMBOL_BUFFER_SIZE
int64_t time_interval_ratio_den
Denominator of timing scale ratio with respect to a unit.
char prefix[MAX_DESCRIPTION_BUFFER_SIZE]
Full name for the prefix (or empty string if no prefix).
int64_t time_interval_ratio_num
Scale of time interval used for this event.
char symbol[MAX_SYMBOL_BUFFER_SIZE]
Symbol for the prefix.
double value
Value in the specified unit.
uint32_t event_type_id
ID specifying the event type.
int64_t time_interval_ratio_den
Scale of time interval used for this event.
char description[MAX_TIME_REPORT_EVENT_DESCRIPTION_SIZE]
Description attached to this event.