benchmark_toolbox: memtester
This commit is contained in:
28
Source/Benchmark-Toolbox/source/memtester/mt_cpu.h
Normal file
28
Source/Benchmark-Toolbox/source/memtester/mt_cpu.h
Normal file
@@ -0,0 +1,28 @@
|
||||
#pragma once
|
||||
|
||||
#include <stdint.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
typedef struct {
|
||||
uint64_t loop;
|
||||
const char *test;
|
||||
uint64_t mismatches;
|
||||
uint64_t burnin_iters;
|
||||
int error;
|
||||
int done;
|
||||
uint64_t total_mb;
|
||||
int threads;
|
||||
float progress;
|
||||
} mt_cpu_status_t;
|
||||
|
||||
void mt_cpu_start(int mode);
|
||||
void mt_cpu_stop(void);
|
||||
int mt_cpu_running(void);
|
||||
void mt_cpu_get(mt_cpu_status_t *out);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
Reference in New Issue
Block a user