实时查看线程所占cpu

1.程序中加入syslog(LOG_NOTICE, "[%s:%d] pid=%d enter\n", __PRETTY_FUNCTION__, __LINE__, (unsigned int)syscall(SYS_gettid));

2.ptop 线程id

你可能感兴趣的:(实时查看线程所占cpu)