The NetBSD Project

CVS log for pkgsrc/sysutils/py-psutil/Makefile

[BACK] Up to [cvs.NetBSD.org] / pkgsrc / sysutils / py-psutil

Request diff between arbitrary revisions


Keyword substitution: kv
Default branch: MAIN


Revision 1.70: download - view: text, markup, annotated - select for diffs
Sat Apr 18 10:25:07 2026 UTC (6 months, 4 weeks ago) by fox
Branches: MAIN
CVS tags: pkgsrc-2026Q3-base, pkgsrc-2026Q3, pkgsrc-2026Q2-base, pkgsrc-2026Q2, HEAD
Diff to: previous 1.69: preferred, colored
Changes since revision 1.69: +2 -2 lines
sysutils/py-psutil: Handle EFAULT correctly in NetBSD.

Revision 1.69: download - view: text, markup, annotated - select for diffs
Tue Apr 7 05:49:12 2026 UTC (7 months, 1 week ago) by fox
Branches: MAIN
Diff to: previous 1.68: preferred, colored
Changes since revision 1.68: +2 -2 lines
sysutils/psutil: Remove dependency on kvm(3).

Depend on uvm(9) sysctl to derive the values.

Revision 1.68: download - view: text, markup, annotated - select for diffs
Mon Apr 6 16:53:11 2026 UTC (7 months, 1 week ago) by fox
Branches: MAIN
Diff to: previous 1.67: preferred, colored
Changes since revision 1.67: +2 -1 lines
sysutils/psutil: Patch to remove procfs dependency

Replace procfs depdendency in the following sections
- cpu stats calculation
- memory usage calculation

While here also handle EBUSY failures gracefully.

Revision 1.67: download - view: text, markup, annotated - select for diffs
Fri Jan 30 13:00:21 2026 UTC (9 months, 2 weeks ago) by adam
Branches: MAIN
CVS tags: pkgsrc-2026Q1-base, pkgsrc-2026Q1
Diff to: previous 1.66: preferred, colored
Changes since revision 1.66: +3 -5 lines
py-psutil: updated to 7.2.2

7.2.2

**Enhancements**

- 2705_: [Linux]: `Process.wait()`_ now uses ``pidfd_open()`` + ``poll()`` for
  waiting, resulting in no busy loop and faster response times. Requires
  Linux >= 5.3 and Python >= 3.9. Falls back to traditional polling if
  unavailable.
- 2705_: [macOS], [BSD]: `Process.wait()`_ now uses ``kqueue()`` for waiting,
  resulting in no busy loop and faster response times.

**Bug fixes**

- 2701_, [macOS]: fix compilation error on macOS < 10.7.  (patch by Sergey
  Fedorov)
- 2707_, [macOS]: fix potential memory leaks in error paths of
  `Process.memory_full_info()` and `Process.threads()`.
- 2708_, [macOS]: Process.cmdline()`_ and `Process.environ()`_ may fail with
  ``OSError: [Errno 0] Undefined error`` (from ``sysctl(KERN_PROCARGS2)``).
  They now raise `AccessDenied`_ instead.

Revision 1.66: download - view: text, markup, annotated - select for diffs
Mon Dec 29 09:03:35 2025 UTC (10 months, 2 weeks ago) by wiz
Branches: MAIN
Diff to: previous 1.65: preferred, colored
Changes since revision 1.65: +5 -9 lines
py-psutil: update to 7.2.1.

7.2.1
=====

2025-12-29

**Bug fixes**

- 2699_, [FreeBSD], [NetBSD]: `heap_info()`_ does not detect small allocations
  (<= 1K). In order to fix that, we now flush internal jemalloc cache before
  fetching the metrics.

Revision 1.65: download - view: text, markup, annotated - select for diffs
Fri Dec 26 10:27:43 2025 UTC (10 months, 2 weeks ago) by adam
Branches: MAIN
Diff to: previous 1.64: preferred, colored
Changes since revision 1.64: +2 -2 lines
py-psutil: updated to 7.2.0

7.2.0

**Enhancements**

- 1275_: new `heap_info()`_ and `heap_trim()`_ functions, providing direct
  access to the platform's native C heap allocator (glibc, mimalloc,
  libmalloc). Useful to create tools to detect memory leaks.
- 2403_, [Linux]: publish wheels for Linux musl.
- 2680_: unit tests are no longer installed / part of the distribution. They
  now live under `tests/` instead of `psutil/tests`.

**Bug fixes**

* 2684_, [FreeBSD], [critical]: compilation fails on FreeBSD 14 due to missing
  include.
* 2691_, [Windows]: fix memory leak in `net_if_stats()`_ due to missing
  ``Py_CLEAR``.

**Compatibility notes**

- 2680_: `import psutil.tests` no longer works (but it was never documented to
  begin with).

Revision 1.64: download - view: text, markup, annotated - select for diffs
Mon Nov 3 14:33:59 2025 UTC (12 months, 1 week ago) by adam
Branches: MAIN
CVS tags: pkgsrc-2025Q4-base, pkgsrc-2025Q4
Diff to: previous 1.63: preferred, colored
Changes since revision 1.63: +2 -2 lines
py-psutil: updated to 7.1.3

7.1.3

**Enhancements**

- 2667_: enforce `clang-format` on all C and header files. It is now the
  mandatory formatting style for all C sources.
- 2672_, [macOS], [BSD]: increase the chances to recognize zombie processes and
  raise the appropriate exception (`ZombieProcess`_).
- 2676_, 2678_: replace unsafe `sprintf` / `snprintf` / `sprintf_s` calls with
  `str_format()`. Replace `strlcat` / `strlcpy` with safe `str_copy` /
  `str_append`. This unifies string handling across platforms and reduces
  unsafe usage of standard string functions, improving robustness.

**Bug fixes**

- 2674_, [Windows]: `disk_usage()`_ could truncate values on 32-bit platforms,
  potentially reporting incorrect total/free/used space for drives larger than
  4GB.
- 2675_, [macOS]: `Process.status()`_ incorrectly returns "running" for 99%
  of the processes.
- 2677_, [Windows]: fix MAC address string construction in `net_if_addrs()`_.
  Previously, the MAC address buffer was incorrectly updated using a fixed
  increment and `sprintf_s`, which could overflow or misformat the
  string if the MAC length or formatting changed. Also, the final '\n' was
  inserted unnecessarily.

7.1.2

2025-10-25

**Enhancements**

- 2657_: stop publishing prebuilt Linux and Windows wheels for 32-bit Python.
  32-bit CPython is still supported, but psutil must now be built from source.
  2565_: produce wheels for free-thread cPython 3.13 and 3.14 (patch by
  Lysandros Nikolaou)

**Bug fixes**

- 2650_, [macOS]: `Process.cmdline()`_ and `Process.environ()`_ may incorrectly
  raise `NoSuchProcess`_ instead of `ZombieProcess`_.
- 2658_, [macOS]: double ``free()`` in `Process.environ()`_ when it fails
  internally. This posed a risk of segfault.
- 2662_, [macOS]: massive C code cleanup to guard against possible segfaults
  which were (not so) sporadically spotted on CI.

**Compatibility notes**

- 2657_: stop publishing prebuilt Linux and Windows wheels for 32-bit Python.

Revision 1.63: download - view: text, markup, annotated - select for diffs
Mon Oct 20 06:01:19 2025 UTC (12 months, 3 weeks ago) by adam
Branches: MAIN
Diff to: previous 1.62: preferred, colored
Changes since revision 1.62: +2 -2 lines
py-psutil: updated to 7.1.1

7.1.1

**Enhancements**

* 2645_, [SunOS]: dropped support for SunOS 10.
* 2646_, [SunOS]: add CI test runner for SunOS.

**Bug fixes**

- 2641_, [SunOS]: cannot compile psutil from sources due to missing C include.
- 2357_, [SunOS]: `Process.cmdline()`_ does not handle spaces properly. (patch
  by Ben Raz)

**Compatibility notes**

* 2645_: SunOS 10 is no longer supported.

Revision 1.62: download - view: text, markup, annotated - select for diffs
Tue Sep 23 06:28:44 2025 UTC (13 months, 3 weeks ago) by adam
Branches: MAIN
Diff to: previous 1.61: preferred, colored
Changes since revision 1.61: +6 -5 lines
py-psutil: updated to 7.1.0

7.1.0

2025-09-17

**Enhancements**

- 2581_, [Windows]: publish ARM64 wheels.  (patch by Matthieu Darbois)
- 2571_, [FreeBSD]: Dropped support for FreeBSD 8 and earlier. FreeBSD 8 was
  maintained from 2009 to 2013.
- 2575_: introduced `dprint` CLI tool to format .yml and .md files.

**Bug fixes**

- 2473_, [macOS]: Fix build issue on macOS 11 and lower.
- 2494_, [Windows]: All APIs dealing with paths, such as
  `Process.memory_maps()`_, `Process.exe()`_ and `Process.open_files()`_ does
  not properly handle UNC paths. Paths such as ``\\??\\C:\\Windows\\Temp`` and
  ``'\\Device\\HarddiskVolume1\\Windows\\Temp'`` are now converted to
  ``C:\\Windows\\Temp``.  (patch by Ben Peddell)
- 2506_, [Windows]: Windows service APIs had issues with unicode services using
  special characters in their name.
- 2514_, [Linux]: `Process.cwd()`_ sometimes fail with `FileNotFoundError` due
  to a race condition.
- 2526_, [Linux]: `Process.create_time()`_, which is used to univocally
  identify a process over time, is subject to system clock updates, and as such
  can lead to `Process.is_running()`_ returning a wrong result. A monotonic
  creation time is now used instead.  (patch by Jonathan Kohler)
- 2528_, [Linux]: `Process.children()`_ may raise ``PermissionError``. It will
  now raise `AccessDenied`_ instead.
- 2540_, [macOS]: `boot_time()`_ is off by 45 seconds (C precision issue).
- 2541_, 2570_, 2578_ [Linux], [macOS], [NetBSD]: `Process.create_time()`_ does
  not reflect system clock updates.
- 2542_: if system clock is updated `Process.children()`_ and
  `Process.parent()`_ may not be able to return the right information.
- 2545_: [Illumos]: Fix handling of MIB2_UDP_ENTRY in `net_connections()`_.
- 2552_, [Windows]: `boot_time()`_ didn't take into account the time spent
  during suspend / hibernation.
- 2560_, [Linux]: `Process.memory_maps()`_ may crash with `IndexError` on
  RISCV64 due to a malformed `/proc/{PID}/smaps` file.  (patch by Julien
  Stephan)
- 2586_, [macOS], [CRITICAL]: fixed different places in C code which can
  trigger a segfault.
- 2604_, [Linux]: `virtual_memory()`_ "used" memory does not match recent
  versions of ``free`` CLI utility.  (patch by Isaac K. Ko)
- 2605_, [Linux]: `psutil.sensors_battery()` reports a negative amount for
  seconds left.
- 2607_, [Windows]: ``WindowsService.description()`` method may fail with
  ``ERROR_NOT_FOUND``. Now it returns an empty string instead.
- 2610:, [macOS], [CRITICAL]: fix `cpu_freq()`_ segfault on ARM architectures.

Revision 1.61: download - view: text, markup, annotated - select for diffs
Mon Sep 22 21:50:35 2025 UTC (13 months, 3 weeks ago) by wiz
Branches: MAIN
Diff to: previous 1.60: preferred, colored
Changes since revision 1.60: +11 -1 lines
py-psutil: improve test target

Revision 1.60: download - view: text, markup, annotated - select for diffs
Mon Apr 14 08:31:30 2025 UTC (19 months ago) by adam
Branches: MAIN
CVS tags: pkgsrc-2025Q3-base, pkgsrc-2025Q3, pkgsrc-2025Q2-base, pkgsrc-2025Q2
Diff to: previous 1.59: preferred, colored
Changes since revision 1.59: +3 -2 lines
Fix PLIST after py-setuptools update; bump depends and revision

Revision 1.59: download - view: text, markup, annotated - select for diffs
Tue Mar 4 06:03:04 2025 UTC (20 months, 1 week ago) by adam
Branches: MAIN
CVS tags: pkgsrc-2025Q1-base, pkgsrc-2025Q1
Diff to: previous 1.58: preferred, colored
Changes since revision 1.58: +3 -13 lines
py-psutil: updated to 7.0.0

7.0.0

2025-02-13

**Enhancements**

- 669_, [Windows]: `net_if_addrs()`_ also returns the ``broadcast`` address
  instead of ``None``.
- 2480_: Python 2.7 is no longer supported. Latest version supporting Python
  2.7 is psutil 6.1.X. Install it with: ``pip2 install psutil==6.1.*``.
- 2490_: removed long deprecated ``Process.memory_info_ex()`` method. It was
  deprecated in psutil 4.0.0, released 8 years ago. Substitute is
  ``Process.memory_full_info()``.

**Bug fixes**

- 2496_, [Linux]: Avoid segfault (a cPython bug) on ``Process.memory_maps()``
  for processes that use hundreds of GBs of memory.
- 2502_, [macOS]: `virtual_memory()`_ now relies on ``host_statistics64``
  instead of ``host_statistics``. This is the same approach used by ``vm_stat``
  CLI tool, and should grant more accurate results.

**Compatibility notes**

- 2480_: Python 2.7 is no longer supported.
- 2490_: removed long deprecated ``Process.memory_info_ex()`` method.

Revision 1.58: download - view: text, markup, annotated - select for diffs
Sun Feb 2 10:38:03 2025 UTC (21 months, 1 week ago) by he
Branches: MAIN
Diff to: previous 1.57: preferred, colored
Changes since revision 1.57: +1 -2 lines
lang/python and a number of python packages: re-do atomic64.mk issue.

Evidently, python 3.13 brought in the need to support 64-bit atomics.
This means that python extension packages built with C needs to
use mk/atomic64.mk to make -latomic available on the required 32-bit
ports.  Sadly, there is no reliable way to detect in the .mk files
whether the package is using C (or C++), so this change adds an
unconditional include of mk/atomic64.mk when the python version is
equal to or larger than 3.13 for packages using egg.mk or wheel.mk.

This undoes the individual package Makefile inclusions of mk/atomic64.mk
that I've added over the last few days.

Revision 1.57: download - view: text, markup, annotated - select for diffs
Sun Jan 19 17:01:11 2025 UTC (21 months, 3 weeks ago) by he
Branches: MAIN
Diff to: previous 1.56: preferred, colored
Changes since revision 1.56: +2 -1 lines
sysutils/py-psutil: use atomic64.mk to fix build on macppc w/python3.13.

Revision 1.56: download - view: text, markup, annotated - select for diffs
Tue Dec 24 17:55:29 2024 UTC (22 months, 3 weeks ago) by adam
Branches: MAIN
Diff to: previous 1.55: preferred, colored
Changes since revision 1.55: +2 -2 lines
py-psutil: updated to 6.1.1

6.1.1

**Enhancements**

- 2471_: use Vulture CLI tool to detect dead code.

**Bug fixes**

- 2418_, [Linux]: fix race condition in case /proc/PID/stat does not exist, but
  /proc/PID does, resulting in FileNotFoundError.
- 2470_, [Linux]: `users()`_ may return "localhost" instead of the actual IP
  address of the user logged in.

Revision 1.55: download - view: text, markup, annotated - select for diffs
Mon Nov 11 07:28:59 2024 UTC (2 years ago) by wiz
Branches: MAIN
CVS tags: pkgsrc-2024Q4-base, pkgsrc-2024Q4
Diff to: previous 1.54: preferred, colored
Changes since revision 1.54: +1 -2 lines
py-*: remove unused tool dependency

py-setuptools includes the py-wheel functionality nowadays

Revision 1.54: download - view: text, markup, annotated - select for diffs
Tue Oct 22 08:14:48 2024 UTC (2 years ago) by wiz
Branches: MAIN
Diff to: previous 1.53: preferred, colored
Changes since revision 1.53: +5 -6 lines
py-psutil: update to 6.1.0.

6.1.0
=====

2024-10-17

**Enhancements**

- 2366_, [Windows]: drastically speedup `process_iter()`_. We now determine
  process unique identity by using process "fast" create time method. This
  will considerably speedup those apps which use `process_iter()`_ only once,
  e.g. to look for a process with a certain name.
- 2446_: use pytest instead of unittest.
- 2448_: add ``make install-sysdeps`` target to install the necessary system
  dependencies (python-dev, gcc, etc.) on all supported UNIX flavors.
- 2449_: add ``make install-pydeps-test`` and ``make install-pydeps-dev``
  targets. They can be used to install dependencies meant for running tests and
  for local development. They can also be installed via ``pip install .[test]``
  and ``pip install .[dev]``.
- 2456_: allow to run tests via ``python3 -m psutil.tests`` even if ``pytest``
  module is not installed. This is useful for production environments that
  don't have pytest installed, but still want to be able to test psutil
  installation.

**Bug fixes**

- 2427_: psutil (segfault) on import in the free-threaded (no GIL) version of
  Python 3.13.  (patch by Sam Gross)
- 2455_, [Linux]: ``IndexError`` may occur when reading /proc/pid/stat and
  field 40 (blkio_ticks) is missing.
- 2457_, [AIX]: significantly improve the speed of `Process.open_files()`_ for
  some edge cases.
- 2460_, [OpenBSD]: `Process.num_fds()`_ and `Process.open_files()`_ may fail
  with `NoSuchProcess`_ for PID 0. Instead, we now return "null" values (0 and
  [] respectively).

Revision 1.53: download - view: text, markup, annotated - select for diffs
Wed Jun 26 16:51:33 2024 UTC (2 years, 4 months ago) by wiz
Branches: MAIN
CVS tags: pkgsrc-2024Q3-base, pkgsrc-2024Q3
Diff to: previous 1.52: preferred, colored
Changes since revision 1.52: +2 -2 lines
py-psutil: update to 6.0.0.

6.0.0 2024-06-18
================

**Enhancements**

- 2109_: ``maxfile`` and ``maxpath`` fields were removed from the namedtuple
  returned by `disk_partitions()`_. Reason: on network filesystems (NFS) this
  can potentially take a very long time to complete.
- 2366_, [Windows]: log debug message when using slower process APIs.
- 2375_, [macOS]: provide arm64 wheels.  (patch by Matthieu Darbois)
- 2396_: `process_iter()`_ no longer pre-emptively checks whether PIDs have
  been reused. This makes `process_iter()`_ around 20x times faster.
- 2396_: a new ``psutil.process_iter.cache_clear()`` API can be used the clear
  `process_iter()`_ internal cache.
- 2401_, Support building with free-threaded CPython 3.13.
- 2407_: `Process.connections()`_ was renamed to `Process.net_connections()`_.
  The old name is still available, but it's deprecated (triggers a
  ``DeprecationWarning``) and will be removed in the future.
- 2425_: [Linux]: provide aarch64 wheels.  (patch by Matthieu Darbois / Ben Raz)

**Bug fixes**

- 2250_, [NetBSD]: `Process.cmdline()`_ sometimes fail with EBUSY. It usually
  happens for long cmdlines with lots of arguments. In this case retry getting
  the cmdline for up to 50 times, and return an empty list as last resort.
- 2254_, [Linux]: offline cpus raise NotImplementedError in cpu_freq() (patch
  by Shade Gladden)
- 2272_: Add pickle support to psutil Exceptions.
- 2359_, [Windows], [CRITICAL]: `pid_exists()`_ disagrees with `Process`_ on
  whether a pid exists when ERROR_ACCESS_DENIED.
- 2360_, [macOS]: can't compile on macOS < 10.13.  (patch by Ryan Schmidt)
- 2362_, [macOS]: can't compile on macOS 10.11.  (patch by Ryan Schmidt)
- 2365_, [macOS]: can't compile on macOS < 10.9.  (patch by Ryan Schmidt)
- 2395_, [OpenBSD]: `pid_exists()`_ erroneously return True if the argument is
  a thread ID (TID) instead of a PID (process ID).
- 2412_, [macOS]: can't compile on macOS 10.4 PowerPC due to missing `MNT_`
  constants.

**Porting notes**

Version 6.0.0 introduces some changes which affect backward compatibility:

- 2109_: the namedtuple returned by `disk_partitions()`_' no longer has
  ``maxfile`` and ``maxpath`` fields.
- 2396_: `process_iter()`_ no longer pre-emptively checks whether PIDs have
  been reused. If you want to check for PID reusage you are supposed to use
  `Process.is_running()`_ against the yielded `Process`_ instances. That will
  also automatically remove reused PIDs from `process_iter()`_ internal cache.
- 2407_: `Process.connections()`_ was renamed to `Process.net_connections()`_.
  The old name is still available, but it's deprecated (triggers a
  ``DeprecationWarning``) and will be removed in the future.

Revision 1.52: download - view: text, markup, annotated - select for diffs
Sat Jan 20 08:05:41 2024 UTC (2 years, 9 months ago) by adam
Branches: MAIN
CVS tags: pkgsrc-2024Q2-base, pkgsrc-2024Q2, pkgsrc-2024Q1-base, pkgsrc-2024Q1
Diff to: previous 1.51: preferred, colored
Changes since revision 1.51: +2 -2 lines
py-psutil: updated to 5.9.8

5.9.8
=====

2024-01-19

**Enhancements**

- 2343_, [FreeBSD]: filter `net_connections()`_ returned list in C instead of
  Python, and avoid to retrieve unnecessary connection types unless explicitly
  asked. E.g., on an IDLE system with few IPv6 connections this will run around
  4 times faster. Before all connection types (TCP, UDP, UNIX) were retrieved
  internally, even if only a portion was returned.
- 2342_, [NetBSD]: same as above but for NetBSD.
- 2349_: adopted black formatting style.

**Bug fixes**

- 930_, [NetBSD], [critical]: `net_connections()`_ implementation was broken.
  It could either leak memory or core dump.
- 2340_, [NetBSD]: if process is terminated, `Process.cwd()`_ will return an
  empty string instead of raising `NoSuchProcess`_.
- 2345_, [Linux]: fix compilation on older compiler missing DUPLEX_UNKNOWN.
- 2222_, [macOS]: `cpu_freq()` now returns fixed values for `min` and `max`
  frequencies in all Apple Silicon chips.

Revision 1.51: download - view: text, markup, annotated - select for diffs
Sun Dec 17 16:02:34 2023 UTC (2 years, 10 months ago) by adam
Branches: MAIN
CVS tags: pkgsrc-2023Q4-base, pkgsrc-2023Q4
Diff to: previous 1.50: preferred, colored
Changes since revision 1.50: +4 -4 lines
py-psutil: updated to 5.9.7

5.9.7
=====

2023-12-17

**Enhancements**

- 2324_: enforce Ruff rule `raw-string-in-exception`, which helps providing
  clearer tracebacks when exceptions are raised by psutil.

**Bug fixes**

- 2325_, [PyPy]: psutil did not compile on PyPy due to missing
  `PyErr_SetExcFromWindowsErrWithFilenameObject` cPython API.

Revision 1.50: download - view: text, markup, annotated - select for diffs
Wed Oct 18 08:53:08 2023 UTC (3 years ago) by adam
Branches: MAIN
Diff to: previous 1.49: preferred, colored
Changes since revision 1.49: +2 -2 lines
py-psutil: updated to 5.9.6

5.9.6
=====

2023-10-14

**Enhancements**

- 1703_: `cpu_percent()`_ and `cpu_times_percent()`_ are now thread safe,
  meaning they can be called from different threads and still return
  meaningful and independent results. Before, if (say) 10 threads called
  ``cpu_percent(interval=None)`` at the same time, only 1 thread out of 10
  would get the right result.
- 2266_: if `Process`_ class is passed a very high PID, raise `NoSuchProcess`_
  instead of OverflowError.  (patch by Xuehai Pan)
- 2246_: drop python 3.4 & 3.5 support.  (patch by Matthieu Darbois)
- 2290_: PID reuse is now pre-emptively checked for `Process.ppid()`_  and
  `Process.parents()`_.
- 2312_: use ``ruff`` Python linter instead of ``flake8 + isort``. It's an
  order of magnitude faster + it adds a ton of new code quality checks.

**Bug fixes**

- 2195_, [Linux]: no longer print exception at import time in case /proc/stat
  can't be read due to permission error. Redirect it to ``PSUTIL_DEBUG``
  instead.
- 2241_, [NetBSD]: can't compile On NetBSD 10.99.3/amd64.  (patch by Thomas
  Klausner)
- 2245_, [Windows]: fix var unbound error on possibly in `swap_memory()`_
  (patch by student_2333)
- 2268_: ``bytes2human()`` utility function was unable to properly represent
  negative values.
- 2252_, [Windows]: `disk_usage()`_ fails on Python 3.12+.  (patch by
  Matthieu Darbois)
- 2284_, [Linux]: `Process.memory_full_info()`_ may incorrectly raise
  `ZombieProcess`_ if it's determined via ``/proc/pid/smaps_rollup``. Instead
  we now fallback on reading ``/proc/pid/smaps``.
- 2287_, [OpenBSD], [NetBSD]: `Process.is_running()`_ erroneously return
  ``False`` for zombie processes, because creation time cannot be determined.
- 2288_, [Linux]: correctly raise `ZombieProcess`_ on `Process.exe()`_,
  `Process.cmdline()`_ and `Process.memory_maps()`_ instead of returning a
  "null" value.
- 2290_: differently from what stated in the doc, PID reuse is not
  pre-emptively checked for `Process.nice()`_ (set), `Process.ionice()`_,
  (set), `Process.cpu_affinity()`_ (set), `Process.rlimit()`_
  (set), `Process.parent()`_.
- 2308_, [OpenBSD]: `Process.threads()`_ always fail with AccessDenied (also as
  root).

Revision 1.49: download - view: text, markup, annotated - select for diffs
Tue Apr 18 07:37:42 2023 UTC (3 years, 6 months ago) by adam
Branches: MAIN
CVS tags: pkgsrc-2023Q3-base, pkgsrc-2023Q3, pkgsrc-2023Q2-base, pkgsrc-2023Q2
Diff to: previous 1.48: preferred, colored
Changes since revision 1.48: +3 -3 lines
py-psutil: updated to 5.9.5

5.9.5
=====

2023-04-17

**Enhancements**

- 2196_: in case of exception, display a cleaner error traceback by hiding the
  `KeyError` bit deriving from a missed cache hit.
- 2217_: print the full traceback when a `DeprecationWarning` or `UserWarning`
  is raised.
- 2230_, [OpenBSD]: `psutil.net_connections`_ implementation was rewritten from
  scratch:
  - We're now able to retrieve the path of AF_UNIX sockets (before it was an
    empty string)
  - The function is faster since it no longer iterates over all processes.
  - No longer produces duplicate connection entries.
- 2238_: there are cases where `Process.cwd()`_ cannot be determined
  (e.g. directory no longer exists), in which case we returned either ``None``
  or an empty string. This was consolidated and we now return ``""`` on all
  platforms.
- 2239_, [UNIX]: if process is a zombie, and we can only determine part of the
  its truncated `Process.name()`_ (15 chars), don't fail with `ZombieProcess`_
  when we try to guess the full name from the `Process.cmdline()`_. Just
  return the truncated name.
- 2240_, [NetBSD], [OpenBSD]: add CI testing on every commit for NetBSD and
  OpenBSD platforms (python 3 only).

**Bug fixes**

- 1043_, [OpenBSD] `psutil.net_connections`_ returns duplicate entries.
- 1915_, [Linux]: on certain kernels, ``"MemAvailable"`` field from
  ``/proc/meminfo`` returns ``0`` (possibly a kernel bug), in which case we
  calculate an approximation for ``available`` memory which matches "free"
  CLI utility.
- 2164_, [Linux]: compilation fails on kernels < 2.6.27 (e.g. CentOS 5).
- 2186_, [FreeBSD]: compilation fails with Clang 15.  (patch by Po-Chuan Hsieh)
- 2191_, [Linux]: `disk_partitions()`_: do not unnecessarily read
  /proc/filesystems and raise `AccessDenied`_ unless user specified `all=False`
  argument.
- 2216_, [Windows]: fix tests when running in a virtual environment (patch by
  Matthieu Darbois)
- 2225_, [POSIX]: `users()`_ loses precision for ``started`` attribute (off by
  1 minute).
- 2229_, [OpenBSD]: unable to properly recognize zombie processes.
  `NoSuchProcess`_ may be raised instead of `ZombieProcess`_.
- 2231_, [NetBSD]: *available*  `virtual_memory()`_ is higher than *total*.
- 2234_, [NetBSD]: `virtual_memory()`_ metrics are wrong: *available* and
  *used* are too high. We now match values shown by *htop* CLI utility.
- 2236_, [NetBSD]: `Process.num_threads()`_ and `Process.threads()`_ return
  threads that are already terminated.
- 2237_, [OpenBSD], [NetBSD]: `Process.cwd()`_ may raise ``FileNotFoundError``
  if cwd no longer exists. Return an empty string instead.

Revision 1.48: download - view: text, markup, annotated - select for diffs
Tue Nov 8 08:50:20 2022 UTC (4 years ago) by adam
Branches: MAIN
CVS tags: pkgsrc-2023Q1-base, pkgsrc-2023Q1, pkgsrc-2022Q4-base, pkgsrc-2022Q4
Diff to: previous 1.47: preferred, colored
Changes since revision 1.47: +5 -2 lines
py-psutil: updated to 5.9.4

5.9.4
=====

2022-11-07

**Enhancements**

- 2102_: use Limited API when building wheels with CPython 3.6+ on Linux,
  macOS and Windows. This allows to use pre-built wheels in all future versions
  of cPython 3.  (patch by Matthieu Darbois)

**Bug fixes**

- 2077_, [Windows]: Use system-level values for `virtual_memory()`_. (patch by
  Daniel Widdis)
- 2156_, [Linux]: compilation may fail on very old gcc compilers due to missing
  ``SPEED_UNKNOWN`` definition.  (patch by Amir Rossert)
- 2010_, [macOS]: on MacOS, arm64 ``IFM_1000_TX`` and ``IFM_1000_T`` are the
  same value, causing a build failure.  (patch by Lawrence D'Anna)

Revision 1.47: download - view: text, markup, annotated - select for diffs
Wed Nov 2 13:08:21 2022 UTC (4 years ago) by adam
Branches: MAIN
Diff to: previous 1.46: preferred, colored
Changes since revision 1.46: +2 -2 lines
py-psutil: updated to 5.9.3

5.9.3
=====

**Enhancements**

- 2040_, [macOS]: provide wheels for arm64 architecture.

**Bug fixes**

- 2116_, [macOS], [critical]: `psutil.net_connections`_ fails with RuntimeError.
- 2135_, [macOS]: `Process.environ()`_ may contain garbage data. Fix
  out-of-bounds read around ``sysctl_procargs``.
- 2138_, [Linux], **[critical]**: can't compile psutil on Android due to
  undefined ``ethtool_cmd_speed`` symbol.
- 2142_, [POSIX]: `net_if_stats()`_ 's ``flags`` on Python 2 returned unicode
  instead of str.
- 2147_, [macOS] Fix disk usage report on macOS 12+.
- 2150_, [Linux] `Process.threads()`_ may raise ``NoSuchProcess``. Fix race
  condition.
- 2153_, [macOS] Fix race condition in test_posix.TestProcess.test_cmdline.

Revision 1.46: download - view: text, markup, annotated - select for diffs
Mon Sep 5 08:31:14 2022 UTC (4 years, 2 months ago) by adam
Branches: MAIN
CVS tags: pkgsrc-2022Q3-base, pkgsrc-2022Q3
Diff to: previous 1.45: preferred, colored
Changes since revision 1.45: +2 -3 lines
py-psutil: updated to 5.9.2

5.9.2
=====

**Bug fixes**

- 2093_, [FreeBSD], **[critical]**: `pids()`_ may fail with ENOMEM. Dynamically
  increase the ``malloc()`` buffer size until it's big enough.
- 2095_, [Linux]: `net_if_stats()`_ returns incorrect interface speed for
  100GbE network cards.
- 2113_, [FreeBSD], **[critical]**: `virtual_memory()`_ may raise ENOMEM due to
  missing ``#include <sys/param.h>`` directive.  (patch by Peter Jeremy)
- 2128_, [NetBSD]: `swap_memory()`_ was miscalculated.  (patch by Thomas Klausner)

Revision 1.45: download - view: text, markup, annotated - select for diffs
Tue Aug 2 17:13:10 2022 UTC (4 years, 3 months ago) by wiz
Branches: MAIN
Diff to: previous 1.44: preferred, colored
Changes since revision 1.44: +3 -2 lines
py-psutil: fix bugs in swap code on NetBSD.

Bump PKGREVISION.

Revision 1.44: download - view: text, markup, annotated - select for diffs
Thu Jul 7 11:54:53 2022 UTC (4 years, 4 months ago) by adam
Branches: MAIN
Diff to: previous 1.43: preferred, colored
Changes since revision 1.43: +2 -3 lines
py-psutil: updated to 5.9.1

5.9.1
=====

**Enhancements**

- 1053_: dropped support for Python 2.6.  (patches by Matthieu Darbois and Hugo van Kemenade)
- 2050_, [Linux]: increase ``read(2)`` buffer size from 1k to 32k when reading
  ``/proc`` pseudo files line by line. This should help having more consistent
  results.
- 2057_, [OpenBSD]: add support for `cpu_freq()`_.
- 2107_ [Linux]: `Process.memory_full_info()`_ (reporting process USS/PSS/Swap
  memory) now reads ``/proc/pid/smaps_rollup`` instead of ``/proc/pids/smaps``,
  which makes it 5 times faster.

**Bug fixes**

- 2048_: ``AttributeError`` is raised if ``psutil.Error`` class is raised
  manually and passed through ``str``.
- 2049_, [Linux]: `cpu_freq()`_ erroneously returns ``curr`` value in GHz while
  ``min`` and ``max`` are in MHz.
- 2050_, [Linux]: `virtual_memory()`_ may raise ``ValueError`` if running in a
  LCX container.

Revision 1.43: download - view: text, markup, annotated - select for diffs
Sun May 1 09:15:03 2022 UTC (4 years, 6 months ago) by wiz
Branches: MAIN
CVS tags: pkgsrc-2022Q2-base, pkgsrc-2022Q2
Diff to: previous 1.42: preferred, colored
Changes since revision 1.42: +2 -8 lines
py-psutil: mark as not for python 2.x

Revision 1.42: download - view: text, markup, annotated - select for diffs
Mon Mar 28 21:50:42 2022 UTC (4 years, 7 months ago) by wiz
Branches: MAIN
Diff to: previous 1.41: preferred, colored
Changes since revision 1.41: +2 -1 lines
py-psutil: NetBSD: read info about cached data from /proc/meminfo as well

Bump PKGREVISION.

Revision 1.41: download - view: text, markup, annotated - select for diffs
Mon Jan 10 17:05:27 2022 UTC (4 years, 10 months ago) by adam
Branches: MAIN
CVS tags: pkgsrc-2022Q1-base, pkgsrc-2022Q1
Diff to: previous 1.40: preferred, colored
Changes since revision 1.40: +7 -4 lines
py-psutil: updated to 5.9.0

5.9.0
=====

**Enhancements**

- 1851_, [Linux]: `cpu_freq()`_ is slow on systems with many CPUs. Read current
  frequency values for all CPUs from ``/proc/cpuinfo`` instead of opening many
  files in ``/sys`` fs.  (patch by marxin)
- 1992_: `NoSuchProcess`_ message now specifies if the PID has been reused.
- 1992_: error classes (`NoSuchProcess`_, `AccessDenied`_, etc.) now have a better
  formatted and separated ``__repr__`` and ``__str__`` implementations.
- 1996_, [BSD]: add support for MidnightBSD.  (patch by Saeed Rasooli)
- 1999_, [Linux]: `disk_partitions()`_: convert ``/dev/root`` device (an alias
  used on some Linux distros) to real root device path.
- 2005_: ``PSUTIL_DEBUG`` mode now prints file name and line number of the debug
  messages coming from C extension modules.
- 2042_: rewrite HISTORY.rst to use hyperlinks pointing to psutil API doc.

**Bug fixes**

- 1456_, [macOS], **[critical]**: `cpu_freq()`_ ``min`` and ``max`` are set to
  0 if can't be determined (instead of crashing).
- 1512_, [macOS]: sometimes `Process.connections()`_ will crash with
  ``EOPNOTSUPP`` for one connection; this is now ignored.
- 1598_, [Windows]: `disk_partitions()`_ only returns mountpoints on drives
  where it first finds one.
- 1874_, [SunOS]: swap output error due to incorrect range.
- 1892_, [macOS]: `cpu_freq()`_ broken on Apple M1.
- 1901_, [macOS]: different functions, especially `Process.open_files()`_ and
  `Process.connections()`_, could randomly raise `AccessDenied`_ because the
  internal buffer of ``proc_pidinfo(PROC_PIDLISTFDS)`` syscall was not big enough.
  We now dynamically increase the buffer size until it's big enough instead of
  giving up and raising `AccessDenied`_, which was a fallback to avoid crashing.
- 1904_, [Windows]: ``OpenProcess`` fails with ``ERROR_SUCCESS`` due to
  ``GetLastError()`` called after ``sprintf()``.  (patch by alxchk)
- 1913_, [Linux]: `wait_procs()`_ should catch ``subprocess.TimeoutExpired``
  exception.
- 1919_, [Linux]: `sensors_battery()`_ can raise ``TypeError`` on PureOS.
- 1921_, [Windows]: `swap_memory()`_ shows committed memory instead of swap.
- 1940_, [Linux]: psutil does not handle ``ENAMETOOLONG`` when accessing process
  file descriptors in procfs.  (patch by Nikita Radchenko)
- 1948_, **[critical]**: ``memoize_when_activated`` decorator is not thread-safe.
  (patch by Xuehai Pan)
- 1953_, [Windows], **[critical]**: `disk_partitions()`_ crashes due to
  insufficient buffer len. (patch by MaWe2019)
- 1965_, [Windows], **[critical]**: fix "Fatal Python error: deallocating None"
  when calling `users()`_ multiple times.
- 1980_, [Windows]: 32bit / WoW64 processes fails to read `Process.name()`_ longer
  than 128 characters resulting in `AccessDenied`_. This is now fixed.  (patch
  by PetrPospisil)
- 1991_, **[critical]**: `process_iter()`_ is not thread safe and can raise
  ``TypeError`` if invoked from multiple threads.
- 1956_, [macOS]: `Process.cpu_times()`_ reports incorrect timings on M1 machines.
  (patch by Olivier Dormond)
- 2023_, [Linux]: `cpu_freq()`_ return order is wrong on systems with more than
  9 CPUs.

Revision 1.40: download - view: text, markup, annotated - select for diffs
Tue Jan 4 20:54:49 2022 UTC (4 years, 10 months ago) by wiz
Branches: MAIN
Diff to: previous 1.39: preferred, colored
Changes since revision 1.39: +2 -1 lines
*: bump PKGREVISION for egg.mk users

They now have a tool dependency on py-setuptools instead of a DEPENDS

Revision 1.39: download - view: text, markup, annotated - select for diffs
Sat Jan 16 08:05:31 2021 UTC (5 years, 10 months ago) by adam
Branches: MAIN
CVS tags: pkgsrc-2021Q4-base, pkgsrc-2021Q4, pkgsrc-2021Q3-base, pkgsrc-2021Q3, pkgsrc-2021Q2-base, pkgsrc-2021Q2, pkgsrc-2021Q1-base, pkgsrc-2021Q1
Diff to: previous 1.38: preferred, colored
Changes since revision 1.38: +2 -2 lines
py-psutil: updated to 5.8.0

5.8.0

Enhancements

1863: disk_partitions() exposes 2 extra fields: maxfile and maxpath, which are the maximum file name and path name length.
1872: [Windows] added support for PyPy 2.7.
1879: provide pre-compiled wheels for Linux and macOS (yey!).
1880: get rid of Travis and Cirrus CI services (they are no longer free). CI testing is now done by GitHub Actions on Linux, macOS and FreeBSD (yes). AppVeyor is still being used for Windows CI.

Bug fixes

1708: [Linux] get rid of sensors_temperatures() duplicates. (patch by Tim Schlueter).
1839: [Windows] always raise AccessDenied when failing to query 64 processes from 32 bit ones (NtWoW64 APIs).
1866: [Windows] process exe(), cmdline(), environ() may raise "invalid access to memory location" on Python 3.9.
1874: [Solaris] wrong swap output given when encrypted column is present.
1875: [Windows] process username() may raise ERROR_NONE_MAPPED if the SID has no corresponding account name. In this case AccessDenied is now raised.
1877: [Windows] OpenProcess may fail with ERROR_SUCCESS. Turn it into AccessDenied or NoSuchProcess depending on whether the PID is alive.
1886: [macOS] EIO error may be raised on cmdline() and environment(). Now it gets translated into AccessDenied.
1891: [macOS] get rid of deprecated getpagesize().

Revision 1.38: download - view: text, markup, annotated - select for diffs
Mon Nov 30 20:31:58 2020 UTC (5 years, 11 months ago) by adam
Branches: MAIN
CVS tags: pkgsrc-2020Q4-base, pkgsrc-2020Q4
Diff to: previous 1.37: preferred, colored
Changes since revision 1.37: +2 -2 lines
py-psutil: updated to 5.7.3

5.7.3
=====

2020-10-23

**Enhancements**

- 809_: [FreeBSD] add support for `Process.rlimit()`.
- 893_: [BSD] add support for `Process.environ()` (patch by Armin Gruner)
- 1830_: [UNIX] `net_if_stats()`'s `isup` also checks whether the NIC is
  running (meaning Wi-Fi or ethernet cable is connected).  (patch by Chris Burger)
- 1837_: [Linux] improved battery detection and charge "secsleft" calculation
  (patch by aristocratos)

**Bug fixes**

- 1620_: [Linux] physical cpu_count() result is incorrect on systems with more
  than one CPU socket.  (patch by Vincent A. Arcila)
- 1738_: [macOS] Process.exe() may raise FileNotFoundError if process is still
  alive but the exe file which launched it got deleted.
- 1791_: [macOS] fix missing include for getpagesize().
- 1823_: [Windows] Process.open_files() may cause a segfault due to a NULL
  pointer.
- 1838_: [Linux] sensors_battery(): if `percent` can be determined but not
  the remaining values, still return a result instead of None.
  (patch by aristocratos)

Revision 1.37: download - view: text, markup, annotated - select for diffs
Thu Jul 16 11:16:21 2020 UTC (6 years, 4 months ago) by adam
Branches: MAIN
CVS tags: pkgsrc-2020Q3-base, pkgsrc-2020Q3
Diff to: previous 1.36: preferred, colored
Changes since revision 1.36: +2 -2 lines
py-psutil: updated to 5.7.2

5.7.2
=====
Bug fixes
- wheels for 2.7 were inadvertently deleted.

5.7.1
=====
Enhancements
- 1729_: parallel tests on UNIX (make test-parallel). They're twice as fast!
- 1741_: "make build/install" is now run in parallel and it's about 15% faster
  on UNIX.
- 1747_: `Process.wait()` on POSIX returns an enum, showing the negative signal
  which was used to terminate the process::
    >>> import psutil
    >>> p = psutil.Process(9891)
    >>> p.terminate()
    >>> p.wait()
    <Negsignal.SIGTERM: -15>
- 1747_: `Process.wait()` return value is cached so that the exit code can be
  retrieved on then next call.
- 1747_: Process provides more info about the process on str() and repr()
  (status and exit code)::
    >>> proc
    psutil.Process(pid=12739, name='python3', status='terminated',
                   exitcode=<Negsigs.SIGTERM: -15>, started='15:08:20')
- 1757_: memory leak tests are now stable.
- 1768_: [Windows] added support for Windows Nano Server.

Bug fixes
- 1726_: [Linux] cpu_freq() parsing should use spaces instead of tabs on ia64.
- 1760_: [Linux] Process.rlimit() does not handle long long type properly.
- 1766_: [macOS] NoSuchProcess may be raised instead of ZombieProcess.
- 1781_: fix signature of callback function for getloadavg().

Revision 1.36: download - view: text, markup, annotated - select for diffs
Sun Apr 19 10:04:54 2020 UTC (6 years, 6 months ago) by adam
Branches: MAIN
CVS tags: pkgsrc-2020Q2-base, pkgsrc-2020Q2
Diff to: previous 1.35: preferred, colored
Changes since revision 1.35: +3 -6 lines
py-psutil: updated to 5.7.0

5.7.0

Enhancements
* [SunOS] add partial support for old SunOS 5.10 Update 0 to 3.
* [Linux] sensors_temperatures() looks into an additional /sys/device/ directory for additional data.
* [Windows] dropped support for Windows XP and Windows Server 2003. Minimum supported Windows version now is Windows Vista.
* [FreeBSD] add CI testing/service for FreeBSD (Cirrus CI).
* [Windows] process exe() will succeed for all process PIDs (instead of raising AccessDenied).
* [Windows] net_connections() and Process.connections() are 10% faster.
* [PyPy] added CI / test integration for PyPy via Travis.
* [Windows] added support for PyPy on Windows.
* [Windows] boot_time(), Process.create_time() and users()'s login time now have 1 micro second precision (before the precision was of 1 second).

Bug fixes
* [NetBSD] process cwd() may return ENOENT instead of NoSuchProcess.
* [Linux] Process.memory_maps() can raise KeyError.
* [SunOS] querying basic info for PID 0 results in FileNotFoundError.
* [FreeBSD] many Process methods may cause a segfault on FreeBSD 12.0 due to a backward incompatible change in a C type introduced in 12.0.
* [Windows] Process.memory_full_info() raises AccessDenied even for the current user and os.getpid().
* [Windows] Process.open_files() complete rewrite + check of errors.
* [Windows] process exe() may raise WinError 0.
* [Linux] disk_io_counters() does not take into account extra fields added to recent kernels.
* use the right C type when dealing with PIDs (int or long). Thus far (long) was almost always assumed, which is wrong on most platforms.
* [OpenBSD] Process connections(), num_fds() and threads() returned improper exception if process is gone.
* [SunOS] disk_partitions() may raise OSError.
* [Linux] disk_io_counters() may raise ValueError on systems not having /proc/diskstats.
* [Linux] could not compile on kernels <= 2.6.13 due to PSUTIL_HAVE_IOPRIO not being defined.

Revision 1.35: download - view: text, markup, annotated - select for diffs
Fri Dec 13 09:48:26 2019 UTC (6 years, 11 months ago) by adam
Branches: MAIN
CVS tags: pkgsrc-2020Q1-base, pkgsrc-2020Q1, pkgsrc-2019Q4-base, pkgsrc-2019Q4
Diff to: previous 1.34: preferred, colored
Changes since revision 1.34: +2 -2 lines
py-psutil: updated to 5.6.7

5.6.7
**Bug fixes**
- 1630_: [Windows] can't compile source distribution due to C syntax error.

5.6.6
**Bug fixes**
- 1179_: [Linux] Process cmdline() now takes into account misbehaving processes
  renaming the command line and using inappropriate chars to separate args.
- 1616_: use of Py_DECREF instead of Py_CLEAR will result in double free and
  segfault (CVE).
- 1619_: [OpenBSD] compilation fails due to C syntax error.

Revision 1.34: download - view: text, markup, annotated - select for diffs
Wed Nov 6 15:48:23 2019 UTC (7 years ago) by adam
Branches: MAIN
Diff to: previous 1.33: preferred, colored
Changes since revision 1.33: +5 -6 lines
py-psutil: updated to 5.6.5

5.6.5
**Bug fixes**
- remove pyproject.toml as it was causing installation issues.

5.6.4
**Enhancements**
- [Linux] added Process.cpu_times().iowait counter, which is the time
  spent waiting for blocking I/O to complete.
- add PEP 517/8 build backend and requirements specification for better
  pip integration.

**Bug fixes**
- [Windows] Process' cmdline(), environ() or cwd() may occasionally fail
  with ERROR_PARTIAL_COPY which now gets translated to AccessDenied.
- [Linux] cpu_affinity() segfaults on CentOS 5 / manylinux.
  cpu_affinity() support for CentOS 5 was removed.
- [AIX] compilation error on AIX 7.2 due to 32 vs 64 bit differences.
- 'type' and 'family' fields returned by net_connections() are not
  always turned into enums.
- [NetBSD] process cmdline() erroneously raise ZombieProcess error if
  cmdline has non encodable chars.
- usage percent may be rounded to 0 on Python 2.
- [Windows] getloadavg() math for calculating 5 and 15 mins values is
  incorrect.
- [Linux] use CC compiler env var if defined.
- [Windows] `NtWow64*` syscalls fail to raise the proper error code
- [OSX] calling close() (in C) on possible negative integers.
- [SunOS] compilation fails on SunOS 5.10.

Revision 1.33: download - view: text, markup, annotated - select for diffs
Fri Oct 11 20:01:50 2019 UTC (7 years, 1 month ago) by kamil
Branches: MAIN
Diff to: previous 1.32: preferred, colored
Changes since revision 1.32: +2 -2 lines
py-psutil: Stop using SDEAD on NetBSD

Fixes usage on recent NetBSD.

Revision 1.32: download - view: text, markup, annotated - select for diffs
Sat Jun 29 18:00:49 2019 UTC (7 years, 4 months ago) by wiz
Branches: MAIN
CVS tags: pkgsrc-2019Q3-base, pkgsrc-2019Q3, pkgsrc-2019Q2-base, pkgsrc-2019Q2
Diff to: previous 1.31: preferred, colored
Changes since revision 1.31: +2 -1 lines
py-psutil: fix build on -current, which does not define LSDEAD any longer.

Bump PKGREVISION.

Revision 1.31: download - view: text, markup, annotated - select for diffs
Tue Jun 11 22:55:04 2019 UTC (7 years, 5 months ago) by leot
Branches: MAIN
Diff to: previous 1.30: preferred, colored
Changes since revision 1.30: +2 -3 lines
py-psutil: Update to 5.6.3

pkgsrc changes:
 - Remove no longer needed patch hunks (applied upstream)

Changes:
5.6.3
=====
2019-06-11
Enhancements
------------
 - 1494: [AIX] added support for Process.environ().  (patch by Arnon Yaari)

Bug fixes
---------
 - 1276: [AIX] can't get whole cmdline().  (patch by Arnon Yaari)
 - 1501: [Windows] Process cmdline() and exe() raise unhandled "WinError 1168
   element not found" exceptions for "Registry" and "Memory Compression" psuedo
   processes on Windows 10.
 - 1526: [NetBSD] process cmdline() could raise MemoryError.  (patch by
   Kamil Rytarowski)

Revision 1.30: download - view: text, markup, annotated - select for diffs
Fri Jun 7 19:09:06 2019 UTC (7 years, 5 months ago) by leot
Branches: MAIN
Diff to: previous 1.29: preferred, colored
Changes since revision 1.29: +2 -2 lines
py-psutil: Fix psutil.Popen.as_dict() MemoryError on NetBSD

Previously for kern.argmax a size_t was used in sysctl(3) and the
uninitialized data lead to a too big malloc() call that failed.

Bump PKGREVISION

Revision 1.29: download - view: text, markup, annotated - select for diffs
Sat Jun 1 01:11:57 2019 UTC (7 years, 5 months ago) by kamil
Branches: MAIN
Diff to: previous 1.28: preferred, colored
Changes since revision 1.28: +2 -1 lines
py-psutil: Use KERN_PROC_CWD on NetBSD >= 8.99.42

Revision 1.28: download - view: text, markup, annotated - select for diffs
Tue Apr 30 09:32:07 2019 UTC (7 years, 6 months ago) by adam
Branches: MAIN
Diff to: previous 1.27: preferred, colored
Changes since revision 1.27: +2 -2 lines
py-psutil: updated to 5.6.2

5.6.2

**Enhancements**
- 604_: [UNIX, Windows] add new psutil.getloadavg() returning system load
- 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.).
- 1473_: [Windows] process IO priority (ionice()) values are now exposed as 4
  new constants: IOPRIO_VERYLOW, IOPRIO_LOW, IOPRIO_NORMAL, IOPRIO_HIGH.
  Also it was not possible to set high I/O priority (not it is).
- 1478_: add make command to re-run tests failed on last run.
  average calculation.

**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
- 1462_: [Linux] (tests) make  tests invariant to LANG setting
- 1463_: cpu_distribution.py script was broken.
- 1470_: [Linux] disk_partitions(): fix corner case when /etc/mtab doesn't
  exist.
- 1471_: [SunOS] Process name() and cmdline() can return SystemError.
- 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.
- 1486_: [AIX, SunOS] AttributeError when interacting with Process methods
  involved into oneshot() context.
- 1491_: [SunOS] net_if_addrs(): free() ifap struct on error.
- 1493_: [Linux] cpu_freq(): handle the case where
  /sys/devices/system/cpu/cpufreq/ exists but is empty.

Revision 1.27: download - view: text, markup, annotated - select for diffs
Mon Mar 18 12:59:50 2019 UTC (7 years, 8 months ago) by adam
Branches: MAIN
CVS tags: pkgsrc-2019Q1-base, pkgsrc-2019Q1
Diff to: previous 1.26: preferred, colored
Changes since revision 1.26: +2 -2 lines
py-psutil: updated to 5.6.1

5.6.1
Bug fixes
- 1329_: [AIX] psutil doesn't compile on AIX 6.1.  (patch by Arnon Yaari)
- 1448_: [Windows] crash on import due to rtlIpv6AddressToStringA not available
  on Wine.
- 1451_: [Windows] Process.memory_full_info() segfaults. NtQueryVirtualMemory
  is now used instead of QueryWorkingSet to calculate USS memory.

5.6.0
Enhancements
- 1379_: [Windows] Process suspend() and resume() now use NtSuspendProcess
  and NtResumeProcess instead of stopping/resuming all threads of a process.
  This is faster and more reliable (aka this is what ProcessHacker does).
- 1420_: [Windows] in case of exception disk_usage() now also shows the path
  name.
- 1422_: [Windows] Windows APIs requiring to be dynamically loaded from DLL
  libraries are now loaded only once on startup (instead of on per function
  call) significantly speeding up different functions and methods.
- 1426_: [Windows] PAGESIZE and number of processors is now calculated on
  startup.
- 1428_: in case of error, the traceback message now shows the underlying C
  function called which failed.
- 1433_: new Process.parents() method.  (idea by Ghislain Le Meur)
- 1437_: pids() are returned in sorted order.
- 1442_: python3 is now the default interpreter used by Makefile.

Bug fixes
- 1353_: process_iter() is now thread safe (it rarely raised TypeError).
- 1394_: [Windows] Process name() and exe() may erroneously return "Registry".
  QueryFullProcessImageNameW is now used instead of GetProcessImageFileNameW
  in order to prevent that.
- 1411_: [BSD] lack of Py_DECREF could cause segmentation fault on process
  instantiation.
- 1419_: [Windows] Process.environ() raises NotImplementedError when querying
  a 64-bit process in 32-bit-WoW mode. Now it raises AccessDenied.
- 1427_: [OSX] Process cmdline() and environ() may erroneously raise OSError
  on failed malloc().
- 1429_: [Windows] SE DEBUG was not properly set for current process. It is
  now, and it should result in less AccessDenied exceptions for low-pid
  processes.
- 1432_: [Windows] Process.memory_info_ex()'s USS memory is miscalculated
  because we're not using the actual system PAGESIZE.
- 1439_: [NetBSD] Process.connections() may return incomplete results if using
  oneshot().
- 1447_: original exception wasn't turned into NSP/AD exceptions when using
  Process.oneshot() ctx manager.

Incompatible API changes
- 1291_: [OSX] Process.memory_maps() was removed because inherently broken
  (segfault) for years.

Revision 1.26: download - view: text, markup, annotated - select for diffs
Sun Feb 17 08:38:24 2019 UTC (7 years, 9 months ago) by adam
Branches: MAIN
Diff to: previous 1.25: preferred, colored
Changes since revision 1.25: +2 -2 lines
py-psutil: updated to 5.5.1

5.5.1
Enhancements
- [Windows] on Windows >= 8.1 if Process.cmdline() fails due to
  ERROR_ACCESS_DENIED attempt using NtQueryInformationProcess +
  ProcessCommandLineInformation. (patch by EccoTheFlintstone)

Bug fixes
- [Windows] Process.exe() returns "[Error 0] The operation completed
  successfully" when Python process runs in "Virtual Secure Mode".
- psutil exceptions' repr() show the internal private module path.
- [AIX] psutil won't compile on AIX 7.1 due to missing header.

Revision 1.25: download - view: text, markup, annotated - select for diffs
Thu Jan 24 13:06:45 2019 UTC (7 years, 9 months ago) by adam
Branches: MAIN
Diff to: previous 1.24: preferred, colored
Changes since revision 1.24: +2 -2 lines
py-psutil: updated to 5.5.0

5.5.0

Enhancements
- [FreeBSD] added support for sensors_temperatures().
- [FreeBSD] added support for CPU frequency.

Bug fixes
- Process.oneshot() is now thread safe.
- [Linux] disk_io_counters() fails on Linux kernel 4.18+.
- [Linux] Process' memory_maps() and io_counters() method are no longer
  exposed if not supported by the kernel.
- [Windows] fix psutil.Process().ionice(...) mismatch.
- [Windows] improper usage of CloseHandle() may lead to override the
  original error code when raising an exception.
- incorrect handling of cache in Process.oneshot() context causes
  Process instances to return incorrect results.
- [Windows] OpenProcess() now uses PROCESS_QUERY_LIMITED_INFORMATION
  access rights wherever possible, resulting in less AccessDenied exceptions
  being thrown for system processes.
- [Windows] check if variable is NULL before free()ing it.

Revision 1.24: download - view: text, markup, annotated - select for diffs
Mon Nov 5 12:46:53 2018 UTC (8 years ago) by adam
Branches: MAIN
CVS tags: pkgsrc-2018Q4-base, pkgsrc-2018Q4
Diff to: previous 1.23: preferred, colored
Changes since revision 1.23: +3 -4 lines
py-psutil: updated to 5.4.8

5.4.8:

Enhancements
* [Linux] cpu_freq() is now implemented by parsing /proc/cpuinfo in case /sys/devices/system/cpu/* filesystem is not available.
* [Linux] psutil.sensors_temperatures() now parses /sys/class/thermal in case /sys/class/hwmon fs is not available (e.g. Raspberry Pi).
* [Posix] better compilation support when using g++ instead of gcc.

Bug fixes
* do not print exception on import time in case cpu_times() fails.
* [Linux] Process.io_counters() may raise ValueError.
* [OSX] available and used memory (psutil.virtual_memory()) metrics are not accurate.
* [Windows] psutil.Process().connections() may sometimes fail with intermittent 0xC0000001.
* [Linux] disk_partitions() does not honour PROCFS_PATH.
* [AIX] system CPU times (psutil.cpu_times()) were being reported with ticks unit as opposed to seconds.
* [OSX] psutil debug messages are erroneously printed all the time.
* [SunOS] net_connections() returns an empty list.

Revision 1.23: download - view: text, markup, annotated - select for diffs
Sun Aug 19 09:11:32 2018 UTC (8 years, 2 months ago) by adam
Branches: MAIN
CVS tags: pkgsrc-2018Q3-base, pkgsrc-2018Q3
Diff to: previous 1.22: preferred, colored
Changes since revision 1.22: +3 -3 lines
py-psutil: updated to 5.4.7

5.4.7:
Enhancements
* [macOS] psutil.OSX constant is now deprecated in favor of new psutil.MACOS.
* [Linux] added psutil.STATUS_PARKED constant for Process.status().
* [Linux] add disk_io_counters() dual implementation relying on /sys/block filesystem in case /proc/diskstats is not available.

Bug fixes
* [macOS] Process.memory_maps() may fail with EINVAL due to poor task_for_pid() syscall. AccessDenied is now raised instead.
* [macOS] Process.threads() incorrectly return microseconds instead of seconds.
* [Linux, macOS, BSD] net_if_stats() may return ENODEV.
* [Windows] psutil.Process().connections() may sometime fail with MemoryError.
* [Linux] disk_io_stats() may report inflated r/w bytes values.
* [Linux] Process.status() is unable to recognize "idle" and "parked" statuses (returns '?').
* [Linux] disk_io_counters() can report inflated IO counters due to erroneously counting base disk device and its partition(s) twice.
* [Linux] sensors_temperatures() may fail with ValueError.

Revision 1.22: download - view: text, markup, annotated - select for diffs
Fri Jul 6 10:33:16 2018 UTC (8 years, 4 months ago) by adam
Branches: MAIN
Diff to: previous 1.21: preferred, colored
Changes since revision 1.21: +6 -8 lines
py-psutil: updated to 5.4.6

5.4.6:
Bug fixes
- [Windows] Process.username() may cause a segfault (Python interpreter
  crash).
- net_if_addr() namedtuple's name has been renamed from "snic" to
  "snicaddr".
- [Linux] there was a small chance Process.children() may swallow
  AccessDenied exceptions.

Revision 1.21: download - view: text, markup, annotated - select for diffs
Tue May 15 22:22:01 2018 UTC (8 years, 6 months ago) by minskim
Branches: MAIN
CVS tags: pkgsrc-2018Q2-base, pkgsrc-2018Q2
Diff to: previous 1.20: preferred, colored
Changes since revision 1.20: +2 -2 lines
sysutils/py-psutil: Update to 5.4.5

Enhancements since 5.2.2:

- disk_io_counters() and net_io_counters() numbers no longer wrap
  (restart from 0). Introduced a new "nowrap" argument.
- psutil.net_connections() and psutil.Process.connections() "laddr"
  and "raddr" are now named tuples.
- swap_memory() now relies on /proc/meminfo instead of sysinfo()
  syscall so that it can be used in conjunction with PROCFS_PATH in
  order to retrieve memory info about Linux containers such as Docker
  and Heroku.
- psutil.users() provides a new "pid" field.
- process_iter() accepts two new parameters in order to invoke
  Process.as_dict(): "attrs" and "ad_value". With this you can iterate
  over all processes in one shot without needing to catch
  NoSuchProcess and do list/dict comprehensions.
- implemented full unicode support.
- disk_usage() on Python 3 is now able to accept bytes.
- test suite now enables all warnings by default.
- source distribution is dynamically generated so that it only
  includes relevant files.
- introduced PSUTIL_DEBUG environment variable which can be set in
  order to print useful debug messages on stderr (useful in case of
  nasty errors).
- added support for sensors_battery() on OSX.
- Process.children() is 2x faster on UNIX and 2.4x faster on Linux.
- deprecated method Process.memory_info_ex() now warns by using
  FutureWarning instead of DeprecationWarning.

Revision 1.20: download - view: text, markup, annotated - select for diffs
Mon May 29 16:02:40 2017 UTC (9 years, 5 months ago) by adam
Branches: MAIN
CVS tags: pkgsrc-2018Q1-base, pkgsrc-2018Q1, pkgsrc-2017Q4-base, pkgsrc-2017Q4, pkgsrc-2017Q3-base, pkgsrc-2017Q3, pkgsrc-2017Q2-base, pkgsrc-2017Q2
Diff to: previous 1.19: preferred, colored
Changes since revision 1.19: +14 -7 lines
Changes 5.2.2:

Bug fixes
1000: fixed some setup.py warnings.
1002: [SunOS] remove C macro which will not be available on new Solaris versions. (patch by Danek Duvall)
1004: [Linux] Process.io_counters() may raise ValueError.
1006: [Linux] cpu_freq() may return None on some Linux versions does not support the function; now the function is not declared instead.
1009: [Linux] sensors_temperatures() may raise OSError.
1010: [Linux] virtual_memory() may raise ValueError on Ubuntu 14.04.

Revision 1.19: download - view: text, markup, annotated - select for diffs
Sun Jan 1 08:27:18 2017 UTC (9 years, 10 months ago) by ryoon
Branches: MAIN
CVS tags: pkgsrc-2017Q1-base, pkgsrc-2017Q1
Diff to: previous 1.18: preferred, colored
Changes since revision 1.18: +2 -2 lines
Update to 5.0.1

Changelog:
5.0.1
=====

*2016-12-21*

**Enhancements**

- 939_: tar.gz distribution went from 1.8M to 258K.
- 811_: [Windows] provide a more meaningful error message if trying to use
  psutil on unsupported Windows XP.

**Bug fixes**

- 609_: [SunOS] psutil does not compile on Solaris 10.
- 936_: [Windows] fix compilation error on VS 2013 (patch by Max Bélanger).
- 940_: [Linux] cpu_percent() and cpu_times_percent() was calculated
  incorrectly as "iowait", "guest" and "guest_nice" times were not properly
  taken into account.
- 944_: [OpenBSD] psutil.pids() was omitting PID 0.


5.0.0
=====

*2016-11-06*

**Enhncements**

- 799_: new Process.oneshot() context manager making Process methods around
  +2x faster in general and from +2x to +6x faster on Windows.
- 943_: better error message in case of version conflict on import.

**Bug fixes**

- 932_: [NetBSD] net_connections() and Process.connections() may fail without
  raising an exception.
- 933_: [Windows] memory leak in cpu_stats() and WindowsService.description().


4.4.2
=====

*2016-10-26*

**Bug fixes**

- 931_: psutil no longer compiles on Solaris.


4.4.1
=====

*2016-10-25*

**Bug fixes**

- 927_: ``Popen.__del__`` may cause maximum recursion depth error.


4.4.0
=====

*2016-10-23*

**Enhancements**

- 874_: [Windows] net_if_addrs() returns also the netmask.
- 887_: [Linux] virtual_memory()'s 'available' and 'used' values are more
  precise and match "free" cmdline utility.  "available" also takes into
  account LCX containers preventing "available" to overflow "total".
- 891_: procinfo.py script has been updated and provides a lot more info.

**Bug fixes**

- 514_: [OSX] possibly fix Process.memory_maps() segfault (critical!).
- 783_: [OSX] Process.status() may erroneously return "running" for zombie
  processes.
- 798_: [Windows] Process.open_files() returns and empty list on Windows 10.
- 825_: [Linux] cpu_affinity; fix possible double close and use of unopened
  socket.
- 880_: [Windows] Handle race condition inside psutil_net_connections.
- 885_: ValueError is raised if a negative integer is passed to cpu_percent()
  functions.
- 892_: [Linux] Process.cpu_affinity([-1]) raise SystemError with no error
  set; now ValueError is raised.
- 906_: [BSD] disk_partitions(all=False) returned an empty list. Now the
  argument is ignored and all partitions are always returned.
- 907_: [FreeBSD] Process.exe() may fail with OSError(ENOENT).
- 908_: [OSX, BSD] different process methods could errounesuly mask the real
  error for high-privileged PIDs and raise NoSuchProcess and AccessDenied
  instead of OSError and RuntimeError.
- 909_: [OSX] Process open_files() and connections() methods may raise
  OSError with no exception set if process is gone.
- 916_: [OSX] fix many compilation warnings.


4.3.1
=====

*2016-09-01*

**Enhancements**

- 881_: "make install" now works also when using a virtual env.

**Bug fixes**

- 854_: Process.as_dict() raises ValueError if passed an erroneous attrs name.
- 857_: [SunOS] Process cpu_times(), cpu_percent(), threads() amd memory_maps()
  may raise RuntimeError if attempting to query a 64bit process with a 32bit
  python. "Null" values are returned as a fallback.
- 858_: Process.as_dict() should not return memory_info_ex() because it's
  deprecated.
- 863_: [Windows] memory_map truncates addresses above 32 bits
- 866_: [Windows] win_service_iter() and services in general are not able to
  handle unicode service names / descriptions.
- 869_: [Windows] Process.wait() may raise TimeoutExpired with wrong timeout
  unit (ms instead of sec).
- 870_: [Windows] Handle leak inside psutil_get_process_data.


4.3.0
=====

*2016-06-18*

**Enhancements**

- 819_: [Linux] different speedup improvements:
  Process.ppid() is 20% faster
  Process.status() is 28% faster
  Process.name() is 25% faster
  Process.num_threads is 20% faster on Python 3

**Bug fixes**

- 810_: [Windows] Windows wheels are incompatible with pip 7.1.2.
- 812_: [NetBSD] fix compilation on NetBSD-5.x.
- 823_: [NetBSD] virtual_memory() raises TypeError on Python 3.
- 829_: [UNIX] psutil.disk_usage() percent field takes root reserved space
  into account.
- 816_: [Windows] fixed net_io_counter() values wrapping after 4.3GB in
  Windows Vista (NT 6.0) and above using 64bit values from newer win APIs.


4.2.0
=====

*2016-05-14*

**Enhancements**

- 795_: [Windows] new APIs to deal with Windows services: win_service_iter()
  and win_service_get().
- 800_: [Linux] psutil.virtual_memory() returns a new "shared" memory field.
- 819_: [Linux] speedup /proc parsing:
  - Process.ppid() is 20% faster
  - Process.status() is 28% faster
  - Process.name() is 25% faster
  - Process.num_threads is 20% faster on Python 3

**Bug fixes**

- 797_: [Linux] net_if_stats() may raise OSError for certain NIC cards.
- 813_: Process.as_dict() should ignore extraneous attribute names which gets
  attached to the Process instance.

Revision 1.18: download - view: text, markup, annotated - select for diffs
Fri Apr 29 15:33:57 2016 UTC (10 years, 6 months ago) by prlw1
Branches: MAIN
CVS tags: pkgsrc-2016Q4-base, pkgsrc-2016Q4, pkgsrc-2016Q3-base, pkgsrc-2016Q3, pkgsrc-2016Q2-base, pkgsrc-2016Q2
Diff to: previous 1.17: preferred, colored
Changes since revision 1.17: +2 -2 lines
Update py-psutil to 4.1.0

4.1.0 - 2016-03-12
==================

**Enhancements**

- #777: [Linux] Process.open_files() on Linux return 3 new fields: position,
  mode and flags.
- #779: Process.cpu_times() returns two new fields, 'children_user' and
  'children_system' (always set to 0 on OSX and Windows).
- #789: [Windows] psutil.cpu_times() return two new fields: "interrupt" and
  "dpc". Same for psutil.cpu_times_percent().
- #792: new psutil.cpu_stats() function returning number of CPU ctx switches
  interrupts, soft interrupts and syscalls.

**Bug fixes**

- #774: [FreeBSD] net_io_counters() dropout is no longer set to 0 if the kernel
  provides it.
- #776: [Linux] Process.cpu_affinity() may erroneously raise NoSuchProcess.
  (patch by wxwright)
- #780: [OSX] psutil does not compile with some gcc versions.
- #786: net_if_addrs() may report incomplete MAC addresses.
- #788: [NetBSD] virtual_memory()'s buffers and shared values were set to 0.
- #790: [OSX] psutil won't compile on OSX 10.4.


4.0.0 - 2016-02-17
==================

**Enhancements**

- #523: [Linux, FreeBSD] disk_io_counters() return a new "busy_time" field.
- #660: [Windows] make.bat is smarter in finding alternative VS install
  locations.  (patch by mpderbec)
- #732: Process.environ().  (patch by Frank Benkstein)
- #753: [Linux, OSX, Windows] Process USS and PSS (Linux) "real" memory stats.
  (patch by Eric Rahm)
- #755: Process.memory_percent() "memtype" parameter.
- #758: tests now live in psutil namespace.
- #760: expose OS constants (psutil.LINUX, psutil.OSX, etc.)
- #756: [Linux] disk_io_counters() return 2 new fields: read_merged_count and
  write_merged_count.
- #762: new scripts/procsmem.py script.

**Bug fixes**

- #685: [Linux] virtual_memory() provides wrong results on systems with a lot
  of physical memory.
- #704: [Solaris] psutil does not compile on Solaris sparc.
- #734: on Python 3 invalid UTF-8 data is not correctly handled for process
  name(), cwd(), exe(), cmdline() and open_files() methods resulting in
  UnicodeDecodeError exceptions. 'surrogateescape' error handler is now
  used as a workaround for replacing the corrupted data.
- #737: [Windows] when the bitness of psutil and the target process was
  different cmdline() and cwd() could return a wrong result or incorrectly
  report an AccessDenied error.
- #741: [OpenBSD] psutil does not compile on mips64.
- #751: [Linux] fixed call to Py_DECREF on possible Null object.
- #754: [Linux] cmdline() can be wrong in case of zombie process.
- #759: [Linux] Process.memory_maps() may return paths ending with " (deleted)"
- #761: [Windows] psutil.boot_time() wraps to 0 after 49 days.
- #764: [NetBSD] fix compilation on NetBSD-6.x.
- #766: [Linux] net_connections() can't handle malformed /proc/net/unix file.
- #767: [Linux] disk_io_counters() may raise ValueError on 2.6 kernels and it's
  broken on 2.4 kernels.
- #770: [NetBSD] disk_io_counters() metrics didn't update.

Revision 1.17: download - view: text, markup, annotated - select for diffs
Wed Jan 20 22:59:09 2016 UTC (10 years, 9 months ago) by ryoon
Branches: MAIN
CVS tags: pkgsrc-2016Q1-base, pkgsrc-2016Q1
Diff to: previous 1.16: preferred, colored
Changes since revision 1.16: +2 -3 lines
Update to 3.4.2

* Upstream supports NetBSD and remove local patches

Changelog:
3.4.2 - 2016-01-20
==================

**Enhancements**

- #728: [Solaris] exposed psutil.PROCFS_PATH constant to change the default
  location of /proc filesystem.

**Bug fixes**

- #730: [FreeBSD] psutil.virtual_memory() crashes.


3.4.1 - 2016-01-15
==================

**Enhancements**

- #557: [NetBSD] added NetBSD support.  (contributed by Ryo Onodera and
  Thomas Klausner)
- #708: [Linux] psutil.net_connections() and Process.connections() on Python 2
  can be up to 3x faster in case of many connections.
  Also psutil.Process.memory_maps() is slightly faster.
- #718: process_iter() is now thread safe.

**Bug fixes**

- #714: [OpenBSD] virtual_memory().cached value was always set to 0.
- #715: don't crash at import time if cpu_times() fail for some reason.
- #717: [Linux] Process.open_files fails if deleted files still visible.
- #722: [Linux] swap_memory() no longer crashes if sin/sout can't be determined
  due to missing /proc/vmstat.
- #724: [FreeBSD] virtual_memory().total is slightly incorrect.

Revision 1.16: download - view: text, markup, annotated - select for diffs
Thu Dec 17 04:22:37 2015 UTC (10 years, 11 months ago) by ryoon
Branches: MAIN
CVS tags: pkgsrc-2015Q4-base, pkgsrc-2015Q4
Diff to: previous 1.15: preferred, colored
Changes since revision 1.15: +2 -2 lines
Fix SunOS packaging.

Revision 1.15: download - view: text, markup, annotated - select for diffs
Mon Dec 14 22:58:20 2015 UTC (10 years, 11 months ago) by ryoon
Branches: MAIN
Diff to: previous 1.14: preferred, colored
Changes since revision 1.14: +4 -2 lines
Fix packaging under SunOS and other non-BSD platform

Do not hardcode operating system suffix in PLIST.
Use LOWER_OPSYS instead of :lt for PLIST entry.

Thank you, richard@.

Revision 1.14: download - view: text, markup, annotated - select for diffs
Sun Dec 6 09:21:06 2015 UTC (10 years, 11 months ago) by wiz
Branches: MAIN
Diff to: previous 1.13: preferred, colored
Changes since revision 1.13: +2 -2 lines
Fix EGGNAME after PKGREVISION bump.

Revision 1.13: download - view: text, markup, annotated - select for diffs
Fri Dec 4 09:42:18 2015 UTC (10 years, 11 months ago) by ryoon
Branches: MAIN
Diff to: previous 1.12: preferred, colored
Changes since revision 1.12: +2 -1 lines
Remove unused variable. Bump PKGREVISION.

Revision 1.12: download - view: text, markup, annotated - select for diffs
Tue Dec 1 14:07:36 2015 UTC (10 years, 11 months ago) by ryoon
Branches: MAIN
Diff to: previous 1.11: preferred, colored
Changes since revision 1.11: +8 -5 lines
Update to 3.3.0

* Add preliminary NetBSD support code.
  It is sufficient to run letsencrypt python client on NetBSD.

Changelog:
3.3.0 - 2015-11-25
==================

**Enhancements**

- #558: [Linux] exposed psutil.PROCFS_PATH constant to change the default
  location of /proc filesystem.
- #615: [OpenBSD] added OpenBSD support.  (contributed by Landry Breuil)

**Bug fixes**

- #692: [UNIX] Process.name() is no longer cached as it may change.


3.2.2 - 2015-10-04
==================

**Bug fixes**

- #517: [SunOS] net_io_counters failed to detect network interfaces
  correctly on Solaris 10
- #541: [FreeBSD] disk_io_counters r/w times were expressed in seconds instead
  of milliseconds.  (patch by dasumin)
- #610: [SunOS] fix build and tests on Solaris 10
- #623: [Linux] process or system connections raises ValueError if IPv6 is not
  supported by the system.
- #678: [Linux] can't install psutil due to bug in setup.py.
- #688: [Windows] compilation fails with MSVC 2015, Python 3.5. (patch by
  Mike Sarahan)


3.2.1 - 2015-09-03
==================

**Bug fixes**

- #677: [Linux] can't install psutil due to bug in setup.py.


3.2.0 - 2015-09-02
==================

**Enhancements**

- #644: [Windows] added support for CTRL_C_EVENT and CTRL_BREAK_EVENT signals
  to use with Process.send_signal().
- #648: CI test integration for OSX. (patch by Jeff Tang)
- #663: [UNIX] net_if_addrs() now returns point-to-point (VPNs) addresses.
- #655: [Windows] different issues regarding unicode handling were fixed. On
  Python 2 all APIs returning a string will now return an encoded version of it
  by using sys.getfilesystemencoding() codec. The APIs involved are:
  - psutil.net_if_addrs()
  - psutil.net_if_stats()
  - psutil.net_io_counters()
  - psutil.Process.cmdline()
  - psutil.Process.name()
  - psutil.Process.username()
  - psutil.users()

**Bug fixes**

- #513: [Linux] fixed integer overflow for RLIM_INFINITY.
- #641: [Windows] fixed many compilation warnings.  (patch by Jeff Tang)
- #652: [Windows] net_if_addrs() UnicodeDecodeError in case of non-ASCII NIC
  names.
- #655: [Windows] net_if_stats() UnicodeDecodeError in case of non-ASCII NIC
  names.
- #659: [Linux] compilation error on Suse 10. (patch by maozguttman)
- #664: [Linux] compilation error on Alpine Linux. (patch by Bart van Kleef)
- #670: [Windows] segfgault of net_if_addrs() in case of non-ASCII NIC names.
  (patch by sk6249)
- #672: [Windows] compilation fails if using Windows SDK v8.0. (patch by
  Steven Winfield)
- #675: [Linux] net_connections(); UnicodeDecodeError may occur when listing
  UNIX sockets.


3.1.1 - 2015-07-15
==================

**Bug fixes**

- #603: [Linux] ionice_set value range is incorrect.  (patch by spacewander)
- #645: [Linux] psutil.cpu_times_percent() may produce negative results.
- #656: 'from psutil import *' does not work.


3.1.0 - 2015-07-15
==================

**Enhancements**

- #534: [Linux] disk_partitions() added support for ZFS filesystems.
- #646: continuous tests integration for Windows with
  https://ci.appveyor.com/project/giampaolo/psutil.
- #647: new dev guide:
  https://github.com/giampaolo/psutil/blob/master/DEVGUIDE.rst
- #651: continuous code quality test integration with
  https://scrutinizer-ci.com/g/giampaolo/psutil/

**Bug fixes**

- #340: [Windows] Process.open_files() no longer hangs. Instead it uses a
  thred which times out and skips the file handle in case it's taking too long
  to be retrieved.  (patch by Jeff Tang, PR #597)
- #627: [Windows] Process.name() no longer raises AccessDenied for pids owned
  by another user.
- #636: [Windows] Process.memory_info() raise AccessDenied.
- #637: [UNIX] raise exception if trying to send signal to Process PID 0 as it
  will affect os.getpid()'s process group instead of PID 0.
- #639: [Linux] Process.cmdline() can be truncated.
- #640: [Linux] *connections functions may swallow errors and return an
  incomplete list of connnections.
- #642: repr() of exceptions is incorrect.
- #653: [Windows] Add inet_ntop function for Windows XP to support IPv6.
- #641: [Windows] Replace deprecated string functions with safe equivalents.


3.0.1 - 2015-06-18
==================

**Bug fixes**

- #632: [Linux] better error message if cannot parse process UNIX connections.
- #634: [Linux] Proces.cmdline() does not include empty string arguments.
- #635: [UNIX] crash on module import if 'enum' package is installed on python
  < 3.4.


3.0.0 - 2015-06-13
==================

**Enhancements**

- #250: new psutil.net_if_stats() returning NIC statistics (isup, duplex,
  speed, MTU).
- #376: new psutil.net_if_addrs() returning all NIC addresses a-la ifconfig.
- #469: on Python >= 3.4 ``IOPRIO_CLASS_*`` and ``*_PRIORITY_CLASS`` constants
  returned by psutil.Process' ionice() and nice() methods are enums instead of
  plain integers.
- #581: add .gitignore. (patch by Gabi Davar)
- #582: connection constants returned by psutil.net_connections() and
  psutil.Process.connections() were turned from int to enums on Python > 3.4.
- #587: Move native extension into the package.
- #589: Process.cpu_affinity() accepts any kind of iterable (set, tuple, ...),
  not only lists.
- #594: all deprecated APIs were removed.
- #599: [Windows] process name() can now be determined for all processes even
  when running as a limited user.
- #602: pre-commit GIT hook.
- #629: enhanced support for py.test and nose test discovery and tests run.
- #616: [Windows] Add inet_ntop function for Windows XP.

**Bug fixes**

- #428: [all UNIXes except Linux] correct handling of zombie processes;
  introduced new ZombieProcess exception class.
- #512: [BSD] fix segfault in net_connections().
- #555: [Linux] psutil.users() correctly handles ":0" as an alias for
  "localhost"
- #579: [Windows] Fixed open_files() for PID>64K.
- #579: [Windows] fixed many compiler warnings.
- #585: [FreeBSD] net_connections() may raise KeyError.
- #586: [FreeBSD] cpu_affinity() segfaults on set in case an invalid CPU
  number is provided.
- #593: [FreeBSD] Process().memory_maps() segfaults.
- #606: Process.parent() may swallow NoSuchProcess exceptions.
- #611: [SunOS] net_io_counters has send and received swapped
- #614: [Linux]: cpu_count(logical=False) return the number of physical CPUs
  instead of physical cores.
- #618: [SunOS] swap tests fail on Solaris when run as normal user
- #628: [Linux] Process.name() truncates process name in case it contains
  spaces or parentheses.


2.2.1 - 2015-02-02
==================

**Bug fixes**

- #496: [Linux] fix "ValueError: ambiguos inode with multiple PIDs references"
  (patch by Bruno Binet)


2.2.0 - 2015-01-06
==================

**Enhancements**

- #521: drop support for Python 2.4 and 2.5.
- #553: new examples/pstree.py script.
- #564: C extension version mismatch in case the user messed up with psutil
  installation or with sys.path is now detected at import time.
- #568: New examples/pidof.py script.
- #569: [FreeBSD] add support for process CPU affinity.

**Bug fixes**

- #496: [Solaris] can't import psutil.
- #547: [UNIX] Process.username() may raise KeyError if UID can't be resolved.
- #551: [Windows] get rid of the unicode hack for net_io_counters() NIC names.
- #556: [Linux] lots of file handles were left open.
- #561: [Linux] net_connections() might skip some legitimate UNIX sockets.
  (patch by spacewander)
- #565: [Windows] use proper encoding for psutil.Process.username() and
  psutil.users(). (patch by Sylvain Mouquet)
- #567: [Linux] in the alternative implementation of CPU affinity PyList_Append
  and Py_BuildValue return values are not checked.
- #569: [FreeBSD] fix memory leak in psutil.cpu_count(logical=False).
- #571: [Linux] Process.open_files() might swallow AccessDenied exceptions and
  return an incomplete list of open files.

Revision 1.11: download - view: text, markup, annotated - select for diffs
Sat Jan 24 23:23:48 2015 UTC (11 years, 9 months ago) by adam
Branches: MAIN
CVS tags: pkgsrc-2015Q3-base, pkgsrc-2015Q3, pkgsrc-2015Q2-base, pkgsrc-2015Q2, pkgsrc-2015Q1-base, pkgsrc-2015Q1
Diff to: previous 1.10: preferred, colored
Changes since revision 1.10: +5 -5 lines
Better PLIST processing; won't fail if built as a dependency.

Revision 1.10: download - view: text, markup, annotated - select for diffs
Sat Jan 24 23:01:29 2015 UTC (11 years, 9 months ago) by adam
Branches: MAIN
Diff to: previous 1.9: preferred, colored
Changes since revision 1.9: +3 -2 lines
Fixed building on Darwin; fixed running on NetBSD; fixed PLIST

Revision 1.9: download - view: text, markup, annotated - select for diffs
Sun Oct 5 14:54:37 2014 UTC (12 years, 1 month ago) by wiz
Branches: MAIN
CVS tags: pkgsrc-2014Q4-base, pkgsrc-2014Q4
Diff to: previous 1.8: preferred, colored
Changes since revision 1.8: +2 -2 lines
Update to 2.1.3:

2.1.3 2014-09-26
================

**Bug fixes**

- #536: [Linux]: fix "undefined symbol: CPU_ALLOC" compilation error.

Revision 1.8: download - view: text, markup, annotated - select for diffs
Wed Oct 1 11:53:33 2014 UTC (12 years, 1 month ago) by wiz
Branches: MAIN
Diff to: previous 1.7: preferred, colored
Changes since revision 1.7: +2 -2 lines
Update to 2.1.2:

2.1.2 - 2014-09-21
==================

**Enhancements**

- #407: project moved from Google Code to Github; code moved from Mercurial
  to Git.
- #492: use tox to run tests on multiple python versions.  (patch by msabramo)
- #505: [Windows] distribution as wheel packages.
- #511: new examples/ps.py sample code.

**Bug fixes**

- #340: [Windows] Process.get_open_files() no longer hangs.  (patch by
  Jeff Tang)
- #501: [Windows] disk_io_counters() may return negative values.
- #503: [Linux] in rare conditions Process exe(), open_files() and
  connections() methods can raise OSError(ESRCH) instead of NoSuchProcess.
- #504: [Linux] can't build RPM packages via setup.py
- #506: [Linux] python 2.4 support was broken.
- #522: [Linux] Process.cpu_affinity() might return EINVAL.  (patch by David
  Daeschler)
- #529: [Windows] Process.exe() may raise unhandled WindowsError exception
  for PIDs 0 and 4.  (patch by Jeff Tang)
- #530: [Linux] psutil.disk_io_counters() may crash on old Linux distros
  (< 2.6.5)  (patch by Yaolong Huang)
- #533: [Linux] Process.memory_maps() may raise TypeError on old Linux distros.

Revision 1.7: download - view: text, markup, annotated - select for diffs
Fri May 9 07:37:19 2014 UTC (12 years, 6 months ago) by wiz
Branches: MAIN
CVS tags: pkgsrc-2014Q3-base, pkgsrc-2014Q3, pkgsrc-2014Q2-base, pkgsrc-2014Q2
Diff to: previous 1.6: preferred, colored
Changes since revision 1.6: +2 -2 lines
Mark packages that are not ready for python-3.3 also not ready for 3.4,
until proven otherwise.

Revision 1.6: download - view: text, markup, annotated - select for diffs
Sun May 4 17:15:39 2014 UTC (12 years, 6 months ago) by wiz
Branches: MAIN
Diff to: previous 1.5: preferred, colored
Changes since revision 1.5: +2 -2 lines
Update to 2.1.1:

2.1.1 - 2014-04-29
------------------

BUG FIXES

 * 446: [Windows] fix encoding error when using net_io_counters() on Python 3.
        (patch by Szigeti Gabor Niif)
 * 460: [Windows] net_io_counters() wraps after 4G.
 * 491: [Linux] psutil.net_connections() exceptions. (patch by Alexander Grothe)

Revision 1.5: download - view: text, markup, annotated - select for diffs
Fri Apr 18 19:58:46 2014 UTC (12 years, 7 months ago) by wiz
Branches: MAIN
Diff to: previous 1.4: preferred, colored
Changes since revision 1.4: +3 -3 lines
Update to 2.1.0:

2.1.0 - 2014-04-08
------------------

ENHANCEMENTS

 * 387: system-wide open connections a-la netstat.

BUG FIXES

 * 421: [Solaris] psutil does not compile on SunOS 5.10 (patch by Naveed
        Roudsari)
 * 489: [Linux] psutil.disk_partitions() return an empty list.


2.0.0 - 2014-03-10
------------------

ENHANCEMENTS

 * #424: [Windows] installer for Python 3.X 64 bit.
 * #427: number of logical and physical CPUs (psutil.cpu_count()).
 * #447: psutil.wait_procs() timeout parameter is now optional.
 * #452: make Process instances hashable and usable with set()s.
 * #453: tests on Python < 2.7 require unittest2 module.
 * #459: add a make file for running tests and other repetitive tasks (also
         on Windows).
 * #463: make timeout parameter of cpu_percent* functions default to 0.0 'cause
         it's a common trap to introduce slowdowns.
 * #468: move documentation to readthedocs.com.
 * #477: process cpu_percent() is about 30% faster.  (suggested by crusaderky)
 * #478: [Linux] almost all APIs are about 30% faster on Python 3.X.
 * #479: long deprecated psutil.error module is gone; exception classes now
         live in "psutil" namespace only.

BUG FIXES

 * #193: psutil.Popen constructor can throw an exception if the spawned process
         terminates quickly.
 * #340: [Windows] process get_open_files() no longer hangs.  (patch by
         jtang@vahna.net)
 * #443: [Linux] fix a potential overflow issue for Process.set_cpu_affinity()
         on systems with more than 64 CPUs.
 * #448: [Windows] get_children() and ppid() memory leak (patch by Ulrich
         Klank).
 * #457: [POSIX] pid_exists() always returns True for PID 0.
 * #461: namedtuples are not pickle-able.
 * #466: [Linux] process exe improper null bytes handling.  (patch by
         Gautam Singh)
 * #470: wait_procs() might not wait.  (patch by crusaderky)
 * #471: [Windows] process exe improper unicode handling. (patch by
         alex@mroja.net)
 * #473: psutil.Popen.wait() does not set returncode attribute.
 * #474: [Windows] Process.cpu_percent() is no longer capped at 100%.
 * #476: [Linux] encoding error for process name and cmdline.

API CHANGES

For the sake of consistency a lot of psutil APIs have been renamed.
In most cases accessing the old names will work but it will cause a DeprecationWarning.

 * psutil.* module level constants have being replaced by functions:

    ---------------------------------------------------------
   | Old name                | Replacement                   |
    ---------------------------------------------------------
   | - psutil.NUM_CPUS       | psutil.cpu_cpunt()            |
   | - psutil.BOOT_TIME      | psutil.boot_time()            |
   | - psutil.TOTAL_PHYMEM   | psutil.virtual_memory().total |
    ---------------------------------------------------------

 * Renamed psutil.* functions:

    -----------------------------------------------
   | Old name                 | Replacement        |
    -----------------------------------------------
   | - psutil.get_pid_list()  | psutil.pids()      |
   | - psutil.get_users()     | psutil.users()     |
   | - psutil.get_boot_time() | psutil.boot_time() |
    -----------------------------------------------

 * All psutil.Process get_* methods lost the "get_" prefix.
   get_ext_memory_info() renamed to memory_info_ex().
   Assuming "p = psutil.Process()":

    -------------------------------------------------
   | Old name                 | Replacement          |
    -------------------------------------------------
   | p.get_children()         | p.children()         |
   | p.get_connections()      | p.connections()      |
   | p.get_cpu_affinity()     | p.cpu_affinity()     |
   | p.get_cpu_percent()      | p.cpu_percent()      |
   | p.get_cpu_times()        | p.cpu_times()        |
   | p.get_ext_memory_info()  | p.memory_info_ex()   |
   | p.get_io_counters()      | p.io_counters()      |
   | p.get_ionice()           | p.ionice()           |
   | p.get_memory_info()      | p.memory_info()      |
   | p.get_memory_maps()      | p.memory_maps()      |
   | p.get_memory_percent()   | p.memory_percent()   |
   | p.get_nice()             | p.nice()             |
   | p.get_num_ctx_switches() | p.num_ctx_switches() |
   | p.get_num_fds()          | p.num_fds()          |
   | p.get_num_threads()      | p.num_threads()      |
   | p.get_open_files()       | p.open_files()       |
   | p.get_rlimit()           | p.rlimit()           |
   | p.get_threads()          | p.threads()          |
   | p.getcwd()               | p.cwd()              |
    -------------------------------------------------

 * All psutil.Process set_* methods lost the "set_" prefix.
   Assuming "p = psutil.Process()":

    --------------------------------------------------------
   | Old name             | Replacement                     |
    --------------------------------------------------------
   | p.set_nice()         | p.nice(value)                   |
   | p.set_ionice()       | p.ionice(ioclass, value=None)   |
   | p.set_cpu_affinity() | p.cpu_affinity(cpus)            |
   | p.set_rlimit()       | p.rlimit(resource, limits=None) |
    --------------------------------------------------------

 * Except for 'pid' all psutil.Process class properties have been turned into
   methods. This is the only case which there are no aliases.
   Assuming "p = psutil.Process()":

    ---------------------------------
   | Old name      | Replacement     |
    ---------------------------------
   | p.name        | p.name()        |
   | p.parent      | p.parent()      |
   | p.ppid        | p.ppid()        |
   | p.exe         | p.exe()         |
   | p.cmdline     | p.cmdline()     |
   | p.status      | p.status()      |
   | p.uids        | p.uids()        |
   | p.gids        | p.gids()        |
   | p.username    | p.username()    |
   | p.create_time | p.create_time() |
    ---------------------------------

 * Others:
  * timeout parameter of cpu_percent* functions defaults to 0.0 instead of 0.1.
  * long deprecated psutil.error module is gone; exception classes now live in
    "psutil" namespace only.
  * Process instances' "retcode" attribute returned by psutil.wait_procs() has
    been renamed to "returncode" for consistency with subprocess.Popen.

Revision 1.4: download - view: text, markup, annotated - select for diffs
Sat Jan 25 10:30:22 2014 UTC (12 years, 9 months ago) by wiz
Branches: MAIN
CVS tags: pkgsrc-2014Q1-base, pkgsrc-2014Q1
Diff to: previous 1.3: preferred, colored
Changes since revision 1.3: +2 -1 lines
Mark packages as not ready for python-3.x where applicable;
either because they themselves are not ready or because a
dependency isn't. This is annotated by
PYTHON_VERSIONS_INCOMPATIBLE=  33 # not yet ported as of x.y.z
or
PYTHON_VERSIONS_INCOMPATIBLE=  33 # py-foo, py-bar
respectively, please use the same style for other packages,
and check during updates.

Use versioned_dependencies.mk where applicable.
Use REPLACE_PYTHON instead of handcoded alternatives, where applicable.
Reorder Makefile sections into standard order, where applicable.

Remove PYTHON_VERSIONS_INCLUDE_3X lines since that will be default
with the next commit.

Whitespace cleanups and other nits corrected, where necessary.

Revision 1.3: download - view: text, markup, annotated - select for diffs
Sat Dec 7 21:25:23 2013 UTC (12 years, 11 months ago) by richard
Branches: MAIN
CVS tags: pkgsrc-2013Q4-base, pkgsrc-2013Q4
Diff to: previous 1.2: preferred, colored
Changes since revision 1.2: +9 -2 lines
Update to 1.2.1, changelog follows:

1.2.1 - 2013-11-25
------------------

BUG FIXES

 * #348: [Windows XP] fixed "ImportError: DLL load failed" occurring on module
         import.
 * #425: [Solaris] crash on import due to failure at determining BOOT_TIME.
 * #443: [Linux] can't set CPU affinity on systems with more than 64 cores.


1.2.0 - 2013-11-20
------------------

ENHANCEMENTS

 * #439: assume os.getpid() if no argument is passed to psutil.Process
         constructor.
 * #440: new psutil.wait_procs() utility function which waits for multiple
         processes to terminate.

BUG FIXES

 * #348: [Windows XP/Vista] fixed "ImportError: DLL load failed" occurring on
         module import.


1.1.3 - 2013-11-07
------------------

BUG FIXES

 * #442: [Linux] psutil won't compile on certain version of Linux because of
         missing prlimit(2) syscall.

Revision 1.2: download - view: text, markup, annotated - select for diffs
Sat Nov 2 09:38:34 2013 UTC (13 years ago) by wiz
Branches: MAIN
Diff to: previous 1.1: preferred, colored
Changes since revision 1.1: +3 -3 lines
Update to 1.1.2:

1.1.2 - 2013-10-22
------------------

BUG FIXES

 * #442: [Linux] psutil won't compile on Debian 6.0 because of missing
         prlimit(2) syscall.


1.1.1 - 2013-10-08
------------------

BUG FIXES

 * #438: [Linux] psutil won't compile on kernels < 2.6.36 due to missing
         prlimit(2) syscall.


1.1.0 - 2013-09-28
------------------

ENHANCEMENTS

 * #410: tar.gz and windows binary files are now hosted on PYPI.
 * #412: [Linux] get/set process resource limits.
 * #415: [Windows] Process.get_children() is an order of magnitude faster.
 * #426: [Windows] Process.name is an order of magnitude faster.
 * #431: [UNIX] Process.name is slightly faster because it unnecessarily
         retrieved also process cmdline.

BUG FIXES

 * #391: [Windows] psutil.cpu_times_percent() returns negative percentages.
 * #408: STATUS_* and CONN_* constants don't properly serialize on JSON.
 * #411: [Windows] examples/disk_usage.py may pop-up a GUI error.
 * #413: [Windows] Process.get_memory_info() leaks memory.
 * #414: [Windows] Process.exe on Windows XP may raise ERROR_INVALID_PARAMETER.
 * #416: psutil.disk_usage() doesn't work well with unicode path names.
 * #430: [Linux] process IO counters report wrong number of r/w syscalls.
 * #435: [Linux] psutil.net_io_counters() might report erreneous NIC names.
 * #436: [Linux] psutil.net_io_counters() reports a wrong 'dropin' value.

API CHANGES

 * #408: STATUS_* and CONN_* constants (returned by Process' status() and
         get_connections() methods respectively) have been turned from constant
         objects to plain Python strings.

Revision 1.1: download - view: text, markup, annotated - select for diffs
Sat Oct 12 13:32:36 2013 UTC (13 years, 1 month ago) by wiz
Branches: MAIN
Import py27-psutil-1.0.1 as sysutils/py-psutil.

util is a module providing an interface for retrieving information,
on all running processes and system utilization (CPU, memory, disks,
network, users) in a portable way by using Python, implementing
many functionalities offered by command line tools such as ps, top,
df, netstat, who, kill, uptime, free, lsof, ifconfig, nice, ionice,
iostat, iotop, pidof, tty, taskset, or pmap.

Ported to NetBSD by tron & myself, but more work to do.

Diff request

This form allows you to request diffs between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.

Log view options

CVSweb <webmaster@jp.NetBSD.org>