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()_ with logical=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()_ returns None instead of 0.0 when min and max 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()_ and Process.cmdline()_ can return SystemError. (patch by Daniel Beer)
    • ๐Ÿง 1472_, [Linux]: cpu_freq()_ does not return all CPUs on Rasbperry-pi 3.
    • โœ… 1474_: fix formatting of psutil.tests() which mimicks ps aux output.
    • ๐Ÿ 1475_, [Windows], [critical]: OSError.winerror attribute wasn't properly checked resuling in WindowsError(ERROR_ACCESS_DENIED) being raised instead of AccessDenied_.
    • ๐Ÿ 1477_, [Windows]: wrong or absent error handling for private NTSTATUS Windows APIs. Different process methods were affected by this.
    • ๐Ÿ 1480_, [Windows], [critical]: cpu_count()_ with logical=False could cause a crash due to fixed read violation. (patch by Samer Masterson)
    • 1486_, [AIX], [SunOS]: AttributeError when interacting with Process_ methods involved into Process.oneshot()_ context.
    • 1491_, [SunOS]: net_if_addrs()_: use free() against ifap struct on error. (patch by Agnewee)
    • ๐Ÿง 1493_, [Linux]: cpu_freq()_: handle the case where /sys/devices/system/cpu/cpufreq/ exists but it's empty.