psutil v0.2.0 Release Notes
-
2010-11-13
โจ Enhancements
- 79_: per-process open files (
Process.open_files()
_). - 88_: total system physical cached memory.
- 88_: total system physical memory buffers used by the kernel.
- 91_: add
Process.send_signal()
_ andProcess.terminate()
_ methods. - 95_:
NoSuchProcess
_ andAccessDenied
_ exception classes now providepid
,name
andmsg
attributes. - 97_: per-process children (
Process.children()
_). - 98_:
Process.cpu_times()
_ andProcess.memory_info()
_ now return a namedtuple instead of a tuple. - 103_: per-process opened TCP and UDP connections (
Process.connections()
_). - ๐ 107_, [Windows]: add support for Windows 64 bit. (patch by cjgohlke)
- 111_: per-process executable name (
Process.exe()
_). - ๐ป 113_: exception messages now include
Process.name()
_ andProcess.pid
_. - ๐ 114_, [Windows]:
Process.username()
_ has been rewritten in pure C and no longer uses WMI resulting in a big speedup. Also, pywin32 is no longer required as a third-party dependancy. (patch by wj32) - ๐ 117_, [Windows]: added support for Windows 2000.
- 123_:
cpu_percent()
_ andProcess.cpu_percent()
_ accept a newinterval
parameter. - 129_: per-process threads (
Process.threads()
_).
๐ Bug fixes
- โ 80_: fixed warnings when installing psutil with easy_install.
- ๐ 81_, [Windows]: psutil fails to compile with Visual Studio.
- 94_:
Process.suspend()
_ raisesOSError
instead ofAccessDenied
_. - 86_, [FreeBSD]: psutil didn't compile against FreeBSD 6.x.
- ๐ 102_, [Windows]: orphaned process handles obtained by using
OpenProcess
in C were left behind every timeProcess
_ class was instantiated. - 111_, [POSIX]:
path
andname
Process
_ properties report truncated or erroneous values on POSIX. - ๐ 120_, [macOS]:
cpu_percent()
_ always returning 100%. - 112_:
uid
andgid
properties don't change if process changes effective user/group id at some point. - 126_:
Process.ppid()
,Process.uids()
,Process.gids()
,Process.name()
,Process.exe()
,Process.cmdline()
andProcess.create_time()
_ properties are no longer cached and correctly raiseNoSuchProcess
_ exception if the process disappears.
API changes
- ๐
psutil.Process.path
property is deprecated and works as an alias forpsutil.Process.exe
property. - ๐ฆ
Process.kill()
: signal argument was removed - to send a signal to the process useProcess.send_signal()
method instead. Process.memory_info()
_ returns a nametuple instead of a tuple.cpu_times()
_ returns a nametuple instead of a tuple.- New
Process
_ methods:Process.open_files()
,Process.connections()
,Process.send_signal()
_ andProcess.terminate()
_. Process.ppid()
,Process.uids()
,Process.gids()
,Process.name()
,Process.exe()
,Process.cmdline()
andProcess.create_time()
_ properties are no longer cached and raiseNoSuchProcess
_ exception if process disappears.cpu_percent()
_ no longer returns immediately (see issue 123).Process.cpu_percent()
_ andcpu_percent()
_ no longer returns immediately by default (see issue 123_).
- 79_: per-process open files (