系统级性能分析工具 — Perf

struct timespec t1,t2;       

clock_gettime(CLOCK_PROCESS_CPUTIME_ID,&t2);

printf("wait video time:%ld us\n", ((t2.tv_sec -  t1.tv_sec) * 1000000000 - t1.tv_nsec + t2.tv_nsec)/1000);


系统级性能分析工具 — Perf


猜你喜欢

转载自blog.csdn.net/clud12345/article/details/73558145