-
Notifications
You must be signed in to change notification settings - Fork 75
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
Shortened processes names #86
Comments
Can you give a minimal example? Also which field is it that's shrunk, |
Sure! A simple example fn main() {
let ps_vec = psutil::process::processes().unwrap();
for res in ps_vec {
match res {
Ok(ps) => println!("PID: {:?} NAME: {:?}", ps.pid(), ps.name().unwrap()),
Err(_) => {}
}
}
} this produces (excerpt):
BTW using cmdline() doesn't work at all: fn main() {
let ps_vec = psutil::process::processes().unwrap();
for res in ps_vec {
match res {
Ok(ps) => println!("PID: {:?} NAME: {:?}", ps.pid(), ps.cmdline().unwrap()),
Err(_) => {}
}
}
} produces
P.S.: i tried with psutil 3.1.0, 3.2.0 and also with the version mentioned above, they all produce the same results. |
I tried the example on Linux and it seems to be working for me, so it must be a bug with the |
I just stumbled upon this issue: |
Please provide any of the following information if relevant:
While iterating through
psutil::process::processes()
, the processes names are somehow shortened.if pid and name are printed, i see only the starting parts, like "Google Chrome He" instead of "Google Chrome Helper"
and so on.
The text was updated successfully, but these errors were encountered: