devel/py-objsize: New port: Calculate the total size of the object subtree in bytes (deep size)

This commit is contained in:
Yuri Victorovich 2022-11-19 20:40:48 -08:00
parent f323e9d40f
commit d1f0b3a88a
4 changed files with 30 additions and 0 deletions

View file

@ -4872,6 +4872,7 @@
SUBDIR += py-num2words
SUBDIR += py-numba
SUBDIR += py-objgraph
SUBDIR += py-objsize
SUBDIR += py-oci
SUBDIR += py-odfpy
SUBDIR += py-offtrac

19
devel/py-objsize/Makefile Normal file
View file

@ -0,0 +1,19 @@
PORTNAME= objsize
DISTVERSION= 0.6.1
CATEGORIES= devel
MASTER_SITES= CHEESESHOP
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
MAINTAINER= yuri@FreeBSD.org
COMMENT= Calculate the total size of the object subtree in bytes (deep size)
WWW= https://github.com/liran-funaro/objsize
LICENSE= BSD3CLAUSE
LICENSE_FILE= ${WRKSRC}/LICENSE
USES= python
USE_PYTHON= distutils autoplist
NO_ARCH= yes
.include <bsd.port.mk>

View file

@ -0,0 +1,3 @@
TIMESTAMP = 1668908152
SHA256 (objsize-0.6.1.tar.gz) = 56482d468acdc445c7da05a56e5b05ad38e5c0a27a761b5d8c538df494e19d2a
SIZE (objsize-0.6.1.tar.gz) = 8225

View file

@ -0,0 +1,7 @@
Traversal over Python's objects subtree and calculate the total size of the
subtree in bytes (deep size).
This module traverses all child objects using Python's internal GC
implementation. It attempts to ignore shared objects (i.e., None, types,
modules, classes, functions, lambdas), as they are common among all objects.
It is implemented without recursive calls for high performance.