2018εΉ΄10ζ30ζ₯
β¨ Enhancements
cpu_freq()_ is now implemented by parsing /proc/cpuinfo
in case /sys/devices/system/cpu/* filesystem is not available.sensors_temperatures()_ now parses /sys/class/thermal
in case /sys/class/hwmon fs is not available (e.g. Raspberry Pi). (patch
by Alex Manuskin)π Bug fixes
cpu_times()_ fails.Process.io_counters()_ may raise ValueError.virtual_memory()_) metrics are
not accurate.Process.connections()_ may sometimes fail with
intermittent 0xC0000001. (patch by Sylvain Duchesne)disk_partitions()_ does not honour PROCFS_PATH_.cpu_times()_) were being reported with
ticks unit as opposed to seconds. (patch by Jaime Fullaondo)net_connections()_ returns an empty list. (patch by Oleksii
Shevchuk)2018εΉ΄08ζ14ζ₯
β¨ Enhancements
psutil.OSX constant is now deprecated in favor of new
psutil.MACOS.psutil.STATUS_PARKED constant for Process.status()_.disk_io_counters()_ dual implementation relying on
/sys/block filesystem in case /proc/diskstats is not available.
(patch by Lawrence Ye)π Bug fixes
Process.memory_maps()_ may fail with EINVAL due to poor
task_for_pid() syscall. AccessDenied_ is now raised instead.Process.threads()_ incorrectly return microseconds instead of
seconds. (patch by Nikhil Marathe)net_if_stats()_ may return ENODEV.Process.connections()_ may sometime fail with
MemoryError. (patch by sylvainduchesne)disk_io_counters()_ may report inflated r/w bytes values.Process.status()_ is unable to recognize "idle" and
"parked" statuses (returns "?").disk_io_counters()_ can report inflated values due to
counting base disk device and its partition(s) twice.sensors_temperatures()_ may fail with ValueError.2018εΉ΄06ζ07ζ₯
π Bug fixes
Process.username()_ may cause a segfault
(Python interpreter crash). (patch by Jean-Luc Migot)net_if_addrs()_ namedtuple's name has been renamed from snic to
snicaddr.Process.children()_ may swallow
AccessDenied_ exceptions.2018εΉ΄04ζ14ζ₯
π Bug fixes
extra_require parameter requires latest setuptools version,
breaking quite a lot of installations.2018εΉ΄04ζ13ζ₯
β¨ Enhancements
slab memory field for virtual_memory()_.
(patch by Maxime Mouial)π Bug fixes
Process.cmdline()_ could be truncated at the 15th character when
reading it from /proc. An extra effort is made by reading it from process
address space first. (patch by Georg Sauthoff)cpu_count()_ (both logical and cores) return a wrong
(smaller) number on systems using process groups (> 64 cores).cpu_times()_ with percpu=True return fewer CPUs on
systems using process groups (> 64 cores).cpu_stats()_ and cpu_freq()_ may return incorrect results on
systems using process groups (> 64 cores)./proc/pid/psinfo if there aren't
enough permissions for /proc/pid/cred. (patch by Georg Sauthoff)psinfo as getpriority() doesn't
support real-time processes. (patch by Georg Sauthoff)free() in Process.cpu_num()_. (patch by Georg
Sauthoff)cpu_percent()_ steal time may remain stuck at 100% due to Linux
erroneously reporting a decreased steal time between calls. (patch by Arnon
Yaari)Process.memory_full_info()_ was erroneously summing "Swap:" and
"SwapPss:". Same for "Pss:" and "SwapPss". Not anymore.Process.wait()_ may erroneously raise TimeoutExpired_.sensors_battery()_ may return None in case battery is not
listed as "BAT0" under /sys/class/power_supply.cpu_times()_ float loses accuracy in a long running system.
(patch by stswandering)sensors_temperatures()_ may fail with IOError "no such file".swap_memory()_ stats were erroneously represented in KB.
(patch by Denis KrienbΓΌhl)Backward compatibility
cpu_count()_ with logical=False on Windows XP and Vista
is no longer supported and returns None.2018εΉ΄01ζ01ζ₯
β¨ Enhancements
disk_partitions()_ on Windows return mount points.π Bug fixes
pids()_ may return False on macOS.2017εΉ΄12ζ07ζ₯
β¨ Enhancements
PSUTIL_DEBUG environment variable which can be set in order
to print useful debug messages on stderr (useful in case of nasty errors).sensors_battery()_. (patch by Arnon Yaari)Process.children()_ is 2x faster on POSIX and 2.4x faster on Linux.Process.memory_info_ex()_ now warns by using
FutureWarning instead of DeprecationWarning.π Bug fixes
disk_io_counters()_ may return an empty dict.users()_ hostname returns username instead. (patch by
janderbrain)make test does not work.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.Process.memory_maps()_ may raise ENOENT.pids()_ does not return PID 0 on recent macOS versions.2017εΉ΄11ζ08ζ₯
β¨ Enhancements
Process.num_ctx_switches()_. (patch by Arnon
Yaari)π Bug fixes
SIGTERM instead of 0. (patch by Akos Kiss)python -m psutil.tests fail.net_io_counters()_ packets count now include also non-unicast
packets. (patch by Matthew Long)2017εΉ΄10ζ12ζ₯
β¨ Enhancements
π Bug fixes
sensors_temperatures()_ may crash with IOError.disk_io_counters()_ read_time and write_time
were expressed in tens of micro seconds instead of milliseconds.Process.open_files()_ may lead to segfault. (patch by Jakub Bacic)sensors_fans()_ may crash with IOError. (patch by
Sebastian Saip)2017εΉ΄09ζ10ζ₯
β¨ Enhancements
π Bug fixes
net_connections()_ raises TypeError.Compatibility notes
.exe files for Windows are no longer uploaded on PyPI as per
PEP-527. Only wheels are provided.