psutil v5.4.2 Release Notes

  • 2017-12-07

    โœจ Enhancements

    • 1173_: introduced PSUTIL_DEBUG environment variable which can be set in order to print useful debug messages on stderr (useful in case of nasty errors).
    • ๐ŸŽ 1177_, [macOS]: added support for sensors_battery()_. (patch by Arnon Yaari)
    • 1183_: Process.children()_ is 2x faster on POSIX and 2.4x faster on Linux.
    • ๐Ÿ—„ 1188_: deprecated method Process.memory_info_ex()_ now warns by using FutureWarning instead of DeprecationWarning.

    ๐Ÿ› Bug fixes

    • ๐Ÿ 1152_, [Windows]: disk_io_counters()_ may return an empty dict.
    • ๐Ÿง 1169_, [Linux]: users()_ hostname returns username instead. (patch by janderbrain)
    • ๐Ÿ 1172_, [Windows]: make test does not work.
    • ๐Ÿง 1179_, [Linux]: Process.cmdline()_ is now able to split cmdline args for misbehaving processes which overwrite /proc/pid/cmdline and use spaces instead of null bytes as args separator.
    • ๐ŸŽ 1181_, [macOS]: Process.memory_maps()_ may raise ENOENT.
    • ๐ŸŽ 1187_, [macOS]: pids()_ does not return PID 0 on recent macOS versions.