-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
How to get the CPU usage of the background process on the windows platform. #466
Comments
I can reproduce, it occurs for processes run by I can work on this during the weekend if nobody takes this task. |
@Lomanic Thank you! Since I can not work this weekend, I would very appreciate if you can work on this issue. |
@Lomanic |
Problem is an "Access denied" on adjustTokenPrivileges() in enableSeDebugPrivilege()
So far I have the above commit, but it is currently not functional (Access Denied even as admin), I don't know what the problem is, maybe I will look at it in the future. Anybody can take this task in the mean time. |
I have also encountered this problem, Is this problem solved? |
Is this solved. I dont think it is yet. |
This was fixed by the commit that closed this issue, as usual on Github. |
This seems silly.
Whilst that original implementation is still very questionable (why does psutil have a need to bypass the Win32 security system by using the Unfortunately, nobody seems to have asked that question when this feature was originally implemented, and now everyone seems to be blindly following this bad example. E.g. in psutil, this bad example escalated many years later to running THE WHOLE psutil process with the |
The 'process.CPUPercent()' method works for front process, but it does not works for background process. The program prompts 'could not get CreationDate: Access is denied'.
How to get the CPU usage of the background process on the windows platform.
The text was updated successfully, but these errors were encountered: