BSD Ports

sysutils/py-psleak 0.1.6 NetBSD

Detect memory and resource leaks in Python C extensions

System
NetBSD
Repository
pkgsrc
Maintainer
[email protected]
Last update
Commit
ad712dab47
License
modified-bsd
Categories
sysutils, python
Package size
24.8 KiB, 105.8 KiB installed

Description

A testing framework for detecting memory leaks and unclosed resources created by Python functions, particularly those implemented in C or other native extensions.

Install

Binary package:

pkgin install py311-psleak

From pkgsrc:

cd /usr/pkgsrc/sysutils/py-psleak && make install clean

Packages

The version each package repository carries. “-” means the repository builds no package of it, “n/a” that there is no such repository.

RepositoryVersion
NetBSD 10.1 x86_640.1.6
NetBSD 10.1 aarch640.1.5
SmartOS / illumos x86_640.1.6
macOS 15 arm640.1.6

Dependencies

Run dependencies 2

No port depends on this one.

Configuration

No options to configure.

Service scripts
none
Flavors
py312-psleak-0.1.6, py313-psleak-0.1.6, py314-psleak-0.1.6

Commit history 1

DateCommitCreditsLog message
ad712dab47 adam py-psleak: updated to 0.1.6
0.1.6 - Rewrote the leak detection heuristic: it now looks at the average memory growth per call instead of the absolute growth per run, making it much harder for noise to fool it. Detection is now reliable also when tests are run in parallel. - The number of calls now escalates geometrically (x1.5 per run) instead of linearly. - Tests can now run in parallel via pytest-xdist; the warning previously emitted when running inside a worker is gone. - ``execute()`` now rejects ``times`` < 2 and ``retries`` < 1: those values silently disabled parts of the detection. - Dropped support for Python 3.6 and 3.7 (now requires Python 3.8+). - Compatibility with psutil 8.0.