Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F99160914
perf.h
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Tue, Jan 21, 20:37
Size
1 KB
Mime Type
text/x-c
Expires
Thu, Jan 23, 20:37 (2 d)
Engine
blob
Format
Raw Data
Handle
23724293
Attached To
R9636 Event based gQRS for ECG signals
perf.h
View Options
#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
Log In to Comment