zhengzheng / psutil

Automatically exported from code.google.com/p/psutil
Other
0 stars 0 forks source link

get_process_ppid() and other should cache the status file #281

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
opening the process status file on *every* API call makes psutil very slow on 
high loads -- e.g. we use it to stream CPU usage statistics.

The Process class should cache the value of the file, at least to get the ppid, 
uid gid, since those don't change much during the process life.

Original issue reported on code.google.com by ziade.ta...@gmail.com on 12 Jun 2012 at 7:25

GoogleCodeExporter commented 9 years ago
Good idea.
Done in r1343 for ppid, name, exe, cmdline and create_time properties.
Prorcess uids and gids may be subject to change hence we can't cache them.

Original comment by g.rodola on 13 Jun 2012 at 4:28

GoogleCodeExporter commented 9 years ago
0.5.0 is finally out. Closing out as fixed.

Original comment by g.rodola on 27 Jun 2012 at 6:54

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
Updated csets after the SVN -> Mercurial migration:
r1343 == revision ???

Original comment by g.rodola on 2 Mar 2013 at 12:08