有什么命令可以统计一段时间内的某个进程的cpu占比?

以下是一个使用pidstat命令统计一段时间内某个进程的CPU占比的示例:

pidstat -p <pid> <interval> <count>

pidstat -p 1234 1 5