psutil v5.6.2 Release Notes

Release Date: 2019-04-26 // over 2 years ago
  • 2019-04-26

    โœจ Enhancements

    • ๐Ÿ 604_: [Windows, Windows] add new psutil.getloadavg(), returning system load average calculation, including on Windows (emulated). (patch by Ammar Askar)
    • ๐Ÿง 1404_: [Linux] cpu_count(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 physical CPUs 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 python3 doc, fix links, etc.).
    • ๐Ÿ 1476_: [Windows] it is now possible to set process high I/O priority (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 value on Windows XP.
    • ๐Ÿง 1456_: [Linux] cpu_freq() returns None instead of 0.0 when min/max not available (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 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] OSError.winerror attribute wasn't properly checked resuling in WindowsError 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] psutil.cpu_count(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 oneshot() context.
    • 1491_: [SunOS] net_if_addrs(): free() ifap struct on error. (patch by Agnewee)
    • ๐Ÿง 1493_: [Linux] cpu_freq(): handle the case where /sys/devices/system/cpu/cpufreq/ exists but is empty.