Skip to content
Snippets Groups Projects
Commit 58450dff authored by Thomas Laurent's avatar Thomas Laurent
Browse files

add a cpu measurement macro for test purpose

parent 47c06934
No related branches found
No related tags found
2 merge requests!2535Integration: 2024.w04,!2416fix-ue-scheduler-multi-thread-storage-list-mutex-protection
......@@ -218,4 +218,10 @@ time_stats_t *register_meas(char *name);
void send_meas(time_stats_t *ts, int msgid);
void end_meas(void);
#define timeIt(a) \
{ \
uint64_t deb = rdtsc_oai(); \
a; \
LOG_W(UTIL, #a ": %llu\n", (rdtsc_oai() - deb) / 3000); \
}
#endif
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment