MCPcopy Create free account
hub / github.com/F-Stack/f-stack / rdtsc_prof_end

Function rdtsc_prof_end

dpdk/app/test/test_pie.c:137–148  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

135}
136
137static inline void rdtsc_prof_end(struct rdtsc_prof *p)
138{
139 uint64_t clk_start = rte_rdtsc() - p->clk_start;
140
141 p->clk_avgc++;
142 p->clk_avg += (double) clk_start;
143
144 if (clk_start > p->clk_max)
145 p->clk_max = clk_start;
146 if (clk_start < p->clk_min)
147 p->clk_min = clk_start;
148}
149
150static void rdtsc_prof_print(struct rdtsc_prof *p)
151{

Callers 1

enqueue_dequeue_perfFunction · 0.70

Calls 1

rte_rdtscFunction · 0.50

Tested by

no test coverage detected