Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Linux] add children_iowait to Process.cpu_times() #1975

Closed
simonmarcin opened this issue Aug 4, 2021 · 1 comment
Closed

[Linux] add children_iowait to Process.cpu_times() #1975

simonmarcin opened this issue Aug 4, 2021 · 1 comment

Comments

@simonmarcin
Copy link

Summary

  • OS: { Linux }
  • Type: { core }

Description

The return values of cpu_times() are inconsistent. When profiling multi-process applications, one loose the iowait values (introduced in 1527). CPU user and system values get automatically added to children_user and children_system. To keep track of the time spent in iowait, one has to manually store the last iowait value of all childs and add it to the parent structure. It would be easier and consistent if psutil would also return a children_iowait value in Process.cpu_times().

@giampaolo
Copy link
Owner

psutil exposes children_user and children_system because the kernel expose that information. For iowait it does not, so we cannot have iowait_children.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants