psutil v5.6.2 Release Notes
Release Date: 2019-04-26 // almost 5 years ago-
2019-04-26
โจ Enhancements
- ๐ 604_, [Windows]: add new
getloadavg()
_, returning system load average calculation, including on Windows (emulated). (patch by Ammar Askar) - ๐ง 1404_, [Linux]:
cpu_count()
_ withlogical=False
uses a second method (read from/sys/devices/system/cpu/cpu[0-9]/topology/core_id
) in order to determine the number of CPU cores in case/proc/cpuinfo
does not provide this info. - โ
1458_: provide coloured test output. Also show failures on
KeyboardInterrupt
. - ๐ 1464_: various docfixes (always point to Python 3 doc, fix links, etc.).
- ๐ 1476_, [Windows]: it is now possible to set process high I/O priority
(
Process.ionice()
_). Also, I/O priority values are now exposed as 4 new constants:IOPRIO_VERYLOW
,IOPRIO_LOW
,IOPRIO_NORMAL
,IOPRIO_HIGH
. - โ 1478_: add make command to re-run tests failed on last run.
๐ Bug fixes
- ๐ 1223_, [Windows]:
boot_time()
_ may return incorrect value on Windows XP. - ๐ง 1456_, [Linux]:
cpu_freq()
_ returnsNone
instead of 0.0 whenmin
andmax
fields can't be determined. (patch by Alex Manuskin) - ๐ง 1462_, [Linux]: (tests) make tests invariant to
LANG
setting (patch by Benjamin Drung) - 1463_:
cpu_distribution.py
_ script was broken. - ๐ง 1470_, [Linux]:
disk_partitions()
_: fix corner case when/etc/mtab
doesn't exist. (patch by Cedric Lamoriniere) - 1471_, [SunOS]:
Process.name()
_ andProcess.cmdline()
_ can returnSystemError
. (patch by Daniel Beer) - ๐ง 1472_, [Linux]:
cpu_freq()
_ does not return all CPUs on Rasbperry-pi 3. - โ
1474_: fix formatting of
psutil.tests()
which mimicksps aux
output. - ๐ 1475_, [Windows], [critical]:
OSError.winerror
attribute wasn't properly checked resuling inWindowsError(ERROR_ACCESS_DENIED)
being raised instead ofAccessDenied
_. - ๐ 1477_, [Windows]: wrong or absent error handling for private
NTSTATUS
Windows APIs. Different process methods were affected by this. - ๐ 1480_, [Windows], [critical]:
cpu_count()
_ withlogical=False
could cause a crash due to fixed read violation. (patch by Samer Masterson) - 1486_, [AIX], [SunOS]:
AttributeError
when interacting withProcess
_ methods involved intoProcess.oneshot()
_ context. - 1491_, [SunOS]:
net_if_addrs()
_: usefree()
againstifap
struct on error. (patch by Agnewee) - ๐ง 1493_, [Linux]:
cpu_freq()
_: handle the case where/sys/devices/system/cpu/cpufreq/
exists but it's empty.
- ๐ 604_, [Windows]: add new