-
Notifications
You must be signed in to change notification settings - Fork 6
report PID #95
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
base: main
Are you sure you want to change the base?
report PID #95
Conversation
helpful for finding process in a os system monitor
_pid is attribute
|
I don't fully love this... could maybe see it as a I also am not a huge fan of the other logging changes here, personally. |
|
wrt PID I get it--it's awkward to fit it into logging. I don't like it as a debug message, because debug mode gets flooded with client comm info, so unless you log to file, you can lose PID pretty quickly. I am hoping PID is something you can fetch after the daemon has run for a while (e.g. if you notice after a daemon has large resource usage). Another option would be to store it in state so clients can access it on demand, but I anticipated you would dislike that option more...do you have another proposal for how users can figure out what daemons are using resources on a computer? wrt the other logging changes, they are mostly regarding brevity. I'll elaborate to make sure their case is made:
|
|
@ddkohler can you tell us a story about when you would be looking at PIDs? I have basic questions like: why can't you use task manager? |
|
By any chance is this about the new asyncio introspection features in 3.14? https://docs.python.org/3/whatsnew/3.14.html#whatsnew314-asyncio-introspection |
|
Hey @untzag , the story is usually something along the lines of a daemon is using a surprising amount of resources (cpu or RAM) and I want to figure out what daemon it is. Task Manager lists all daemons as instances of python.exe (the entry point executable runs the daemon as a subprocess, so resources are not stored under the entry point task). When there are several python programs running, it is hard to discover the daemon you are after. The introspection features are quite cool, though! |
Uh oh!
There was an error while loading. Please reload this page.