Memory leaks in Python are usually straightforward to diagnose. Just look at RSS, track Python object counts, follow reference graphs, etc. But leaks inside C extension modules are another story. Traditional memory metrics such as RSS and VMS...
Blog posts tagged "new-api"
psutil 5.6.2 is out. It implements an emulation of os.getloadavg() on Windows, kindly contributed by Ammar Askar, who originally implemented it for CPython's test suite. This idea has been floating around for quite a while. The first proposal...
psutil 5.6.0 is out. Highlights: a new Process.parents() method, several important Windows improvements, and the removal of Process.memory_maps() on macOS. Process.parents() The new method returns the parents of a process as a list of Process...
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...
psutil 5.1.0 is out. This release introduces new APIs to retrieve hardware temperatures, battery status, and CPU frequency information. Temperatures You can now retrieve hardware temperatures (PR-962). This is currently available on Linux only....
Starting from psutil 5.0.0 you can query multiple Process fields around twice as fast as before (see #799 and Process.oneshot()). It took 7 months, 108 commits, and a massive refactoring of psutil internals (PR-937), and I think it's one of the...
New psutil 4.2.0 is out. The highlight of this release is the support for Windows services (executables that run at system startup, similar to UNIX init scripts): >>> import psutil >>> list(psutil.win_service_iter())...
psutil 4.0.0 is out, with some interesting news about process memory metrics. I'll get straight to the point and describe what's new. "Real" process memory info Determining how much memory a process really uses is not an easy matter (see this and...
Here we are. It's been a long time since my last blog post and my last psutil release. The reason? I've been travelling! I mean... a lot. I've spent 3 months in Berlin, 3 weeks in Japan and 2 months in New York City. While I was there I finally …
psutil 2.1.0 is out and with it I finally managed to implement something I've been wanting to have for a long time: netstat-like functionality (see ticket code.google.com/p/psutil/issues/detail?id=387). Similarly to "netstat -antp" on UNIX you...