add a cpu measurement macro for test purpose
This commit is contained in:
@@ -218,4 +218,10 @@ time_stats_t *register_meas(char *name);
|
|||||||
void send_meas(time_stats_t *ts, int msgid);
|
void send_meas(time_stats_t *ts, int msgid);
|
||||||
void end_meas(void);
|
void end_meas(void);
|
||||||
|
|
||||||
|
#define timeIt(a) \
|
||||||
|
{ \
|
||||||
|
uint64_t deb = rdtsc_oai(); \
|
||||||
|
a; \
|
||||||
|
LOG_W(UTIL, #a ": %llu\n", (rdtsc_oai() - deb) / 3000); \
|
||||||
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
Reference in New Issue
Block a user