This is part of the psutil 5.6.0 release (see the full release notes). As of 5.6.0, Process.memory_maps() is no longer defined on macOS. The bug #1291: on macOS, Process.memory_maps() would either raise OSError: [Errno 22] Invalid argument or...
Blog posts tagged "api-design"
This one took a while. Adding proper Unicode support to psutil took four months of auditing, design decisions, and rewriting nearly every API that returned a string. The full journey is documented in #1040, and what follows is a summary. This can...
This is part of the psutil 5.3.0 release (see the changelog for the full list of changes). The old pattern Iterating over processes and collecting attributes requires more boilerplate than it should. A process returned by process_iter() may...
This is part of the psutil 3.0 release (see the full release notes). Except on Linux and Windows (which does not have them), support for zombie processes was broken. The full story is in #428. The problem Say you create a zombie process and...
psutil 2.0 is out. This is a major rewrite and reorganization of both the Python and C extension modules. It costed me four months of work and more than 22,000 lines (the diff against old 1.2.1). Many of the changes are not backward compatible; I'm sure …
This blog post is going to be about psutil 2.0, a major release in which I decided to reorganize the existing API for the sake of consistency. At the time of writing, psutil 2.0 is still under development, and the intent of this blog post is to serve …
One of the initial features which were included in psutil since day one (5 years ago) were the system's boot time, number of CPUs and total physical memory. These metrics have one thing in common: they are (apparently) not supposed to change over...