Detailed time Analysis of State switching of a process under linux

ask the bosses, how to check the state changes of the system under linux? For example, the
process with pid a starts to run when xxx.xxx s, and when xxx.xxx s starts to occupy cpu, to run xxx.xxx s, due to waiting for io or running out of time slices, it is put into the ready queue or blocked queue to wait for the next time slice.
that is, it needs to be accurate to the process state of ms to analyze the process running state transition, which is used to analyze the real-time performance of the system, and whether the bottleneck is related to system overhead or system scheduling.

Menu