psutil v4.0.0 Release Notes
-
2016-02-17
โจ Enhancements
- ๐ง 523_, [Linux], [FreeBSD]:
disk_io_counters()
_ return a newbusy_time
field. - ๐ 660_, [Windows]: make.bat is smarter in finding alternative VS install locations. (patch by mpderbec)
- 732_:
Process.environ()
_. (patch by Frank Benkstein) - ๐ 753_, [Linux], [macOS], [Windows]: process USS and PSS (Linux) "real" memory stats. (patch by Eric Rahm)
- 755_:
Process.memory_percent()
_memtype
parameter. - โ 758_: tests now live in psutil namespace.
- ๐ง 760_: expose OS constants (
psutil.LINUX
,psutil.OSX
, etc.) - ๐ง 756_, [Linux]:
disk_io_counters()
_ return 2 new fields:read_merged_count
andwrite_merged_count
. - 762_: new
procsmem.py
_ script.
๐ Bug fixes
- ๐ง 685_, [Linux]:
virtual_memory()
_ provides wrong results on systems with a lot of physical memory. - 704_, [SunOS]: psutil does not compile on Solaris sparc.
- 734_: on Python 3 invalid UTF-8 data is not correctly handled for
Process.name()
,Process.cwd()
,Process.exe()
,Process.cmdline()
andProcess.open_files()
_ methods resulting inUnicodeDecodeError
exceptions.'surrogateescape'
error handler is now used as a workaround for replacing the corrupted data. - ๐ 737_, [Windows]: when the bitness of psutil and the target process was
different,
Process.cmdline()
_ andProcess.cwd()
_ could return a wrong result or incorrectly report anAccessDenied
_ error. - 741_, [OpenBSD]: psutil does not compile on mips64.
- ๐ง 751_, [Linux]: fixed call to
Py_DECREF
on possibleNULL
object. - ๐ง 754_, [Linux]:
Process.cmdline()
_ can be wrong in case of zombie process. - ๐ง 759_, [Linux]:
Process.memory_maps()
_ may return paths ending with" (deleted)"
. - ๐ 761_, [Windows]:
boot_time()
_ wraps to 0 after 49 days. - 764_, [NetBSD]: fix compilation on NetBSD-6.x.
- ๐ง 766_, [Linux]:
net_connections()
_ can't handle malformed/proc/net/unix
file. - ๐ง 767_, [Linux]:
disk_io_counters()
_ may raiseValueError
on 2.6 kernels and it's broken on 2.4 kernels. - 770_, [NetBSD]:
disk_io_counters()
_ metrics didn't update.
- ๐ง 523_, [Linux], [FreeBSD]: