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

Process.name unnecessarily calls exe() #431

Closed
giampaolo opened this issue May 23, 2014 · 2 comments
Closed

Process.name unnecessarily calls exe() #431

giampaolo opened this issue May 23, 2014 · 2 comments

Comments

@giampaolo
Copy link
Owner

From g.rodola on September 21, 2013 19:47:47

On basically all UNIX systems the process name we get is truncated to the first 
15 characters so in case the the name matches the first part of the process 
cmdline we return that one instead because it's usually more explicative (e.g. 
"gnome-keyring-d" vs. "gnome-keyring-daemon").

Problem is we do this all the time, even if len(name) < 15 characters so we 
unnecessarily retrieve process cmdline every time we're interested just in the 
process name: 
https://code.google.com/p/psutil/source/browse/psutil/__init__.py?spec=svn890e3d6e20838ea11c86edb8990a0cac730a224e&r=32ca76279dced38e87e8c68b5a203f7ade365672#294
 Fixed in revision dfe28538a19f .

Original issue: http://code.google.com/p/psutil/issues/detail?id=431

@giampaolo giampaolo self-assigned this May 23, 2014
@giampaolo
Copy link
Owner Author

From g.rodola on September 28, 2013 03:06:18

Status: Fixed

@giampaolo
Copy link
Owner Author

From g.rodola on September 28, 2013 10:32:46

Closing out as fixed. Release 1.1.0 is now available for download.

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

1 participant