27 #ifndef _CHK_TIME_INFO_H 28 #define _CHK_TIME_INFO_H 46 #if 0 && defined( _USE_PACK ) // use default alignment 47 #pragma pack( 1 ) // set byte alignment 48 #define _USING_BYTE_ALIGNMENT 56 #if !defined( MAX_CYCLES_FILTER_ENTRIES ) 57 #define MAX_CYCLES_FILTER_ENTRIES 32 169 #if defined( _USING_BYTE_ALIGNMENT ) 170 #pragma pack() // set default alignment 171 #undef _USING_BYTE_ALIGNMENT int snprint_chk_time_info(char *s, size_t max_len, const MBG_CHK_TIME_INFO *p, const PCPS_DEV *p_dev, int frac_digits, int print_raw)
Print info from a MBG_CHK_TIME_INFO structure into a string buffer.
High resolution device time, system time, and associated cycles counts.
MBG_PC_CYCLES exec_cyc
Computed execution time of the call, in [cycles].
#define MAX_CYCLES_FILTER_ENTRIES
double d_ref
Raw reference timestamp in floating point format, [s].
double exec_sec_limit
Execution time limit, in [s]. Only available if cycles frequency is known.
int index
Index of the "current" cycles value.
double d_ref_comp
Compensated reference timestamp in floating point format, [s].
MBG_TIME_INFO_HRT hrti
System time, device time, and cycles read from the driver.
double ltcy_sec
Computed latency of the call, in [s]. Only available if cycles frequency is known.
A structure to store the results of the mbg_chk_time_info routine.
MBG_PC_CYCLES sum
The current sum of the cycles values.
MBG_PC_CYCLES exec_cyc_limit
Execution time limit, in [cycles], computed based on usual execution time.
double exec_sec
Computed execution time of the call, in [s]. Only available if cycles frequency is known...
MBG_PC_CYCLES ltcy_cyc
Computed latency of the call, in [cycles].
int entries
The number of cycles values already saved.
int64_t MBG_PC_CYCLES
Generic types to hold PC cycle counter values.
int mbg_chk_time_info(MBG_DEV_HANDLE dh, MBG_CHK_TIME_INFO *p, CYCLES_FILTER_DATA *p_filter, int fast_ts_only)
Read and evaluate a system timestamp / reference timestamp pair.
A structure to keep filter data for cycles values.
double d_sys
System timestamp in floating point format, [s].