Update cpudist.py
authorNick-nizhen <74173686+Nick-nizhen@users.noreply.github.com>
Thu, 27 May 2021 05:21:59 +0000 (13:21 +0800)
committeryonghong-song <ys114321@gmail.com>
Thu, 27 May 2021 17:24:13 +0000 (10:24 -0700)
commitab14fafec3fc13f89bd4678b7fc94829dcacaa7b
treee11c8038addeaf46cfbeeb194e30803b88364701
parent77f5252d158de70d087817b96f865f851ffda259
Update cpudist.py

When calculating the ONCPU  time, prev has left the CPU already. It is not necessary to judge whether the process state is TASK_RUNNING or not.
tools/cpudist.py