Page MenuHomec4science

perf.h
No OneTemporary

File Metadata

Created
Tue, Jan 21, 20:37
#ifndef PERF
#define PERF
#define NUM_EVENT_PERF 17
typedef struct {
rt_perf_t* perf;
uint32_t (*returnedPerf)[NUM_EVENT_PERF];
long event;
uint8_t eventPos;
uint32_t numCalled;
}perfSettings;
//int pastTemp[2000];
void printPerfAvg(char*tag,uint32_t len, uint32_t callFC, uint32_t callCL, uint32_t* returnedPerfFC, uint8_t printCL,uint32_t (*returnedPerfCL)[NUM_EVENT_PERF]);
//PROFILING FUNCTIONS, only the base functiones need to be called:
void startPerfCL(perfSettings* settings);
void stopGetPerfCL(perfSettings* settings,uint8_t verbose, char*tag);
void startPerfFC(perfSettings* settings);
void stopGetPerfFC(perfSettings* settings,uint8_t verbose, char*tag);
//Internal mangae of each counter for each core
void startPerfCLMaster(void *arg);
void startPerfCLEachCore(void *arg);
void stopPerfCLMaster(void *arg);
void stopPerfCLEachCore(void *arg);
//service function
void append(char *str1,char *str2,char *outTag);
//evaluation functions
float evaluateRes(int32_t found[],int16_t sizef,int32_t ground[],int16_t sizeg);
void printFloat(float f, int prec);
#endif

Event Timeline