From nobody Sun Nov 20 06:22:43 2022 X-Original-To: dev-commits-ports-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4NFL6W4spRz4hBg1; Sun, 20 Nov 2022 06:22:43 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4NFL6W4NPxz4HrT; Sun, 20 Nov 2022 06:22:43 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1668925363; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=kfAUZd9tjnnFAUj18kENfbrrF7KKgW0tokOLFGeO89s=; b=ShXN4sTp/jY9j4oD9Ova8voS043lhG9M56QC4WLHO++7V/E4DXXVGrXAOfpxX0PMzGr/0U iWTYvc3ze5uGC29N+9GeTwwiXs55Y/Y3QmMWY1Gn7i9W/3SG5a4MKgX4fyQOFnP4MIZnAi 8M6CHwR681TSclvH8HBKVzImtmFl2Xls5Z9WNlOQpBeC67DjbsRc/HXaQhP8EX7twhZVLy qeWq5CuhwqHOgzryzOvtwR0gHkjIHQc5xT+6JYlzegH5pY2IOTVe76k0JxbZrtPS3fygbG vpQuIYvTyO2BndSEEFQ+HpOPjaykxSsEjF0klRpU1RkZevOBKXQJjIPkVQ0oQw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1668925363; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=kfAUZd9tjnnFAUj18kENfbrrF7KKgW0tokOLFGeO89s=; b=JZ+npmWtHdHOSpWouancyt2/eZ1Jy5jjA5GsJ3bKhitHGorbRD9HO9Xrz9xV8GukiCgdXQ +PAWw6d7mH/PQQ5smA10OL8EoQRM0wF9pPp9iJ/rZcec1m9LKYVlObXARt3YXeJgM+Ie4d QFjLPd2E3BseRp/vId+iZtqrTB48/4WBD0uJfaXYsbLN3P0baoQUhOJbQkVs+PnpkYz43F 95oWRmSVhv+s3Q0nNHwiyLUWViNGyOopxT2VqsxwwiF1M9NV97vBBaXRAIYAVw/94IQPJT jHiUjmnIFrlx80UTHO3+ts9sEsx6C6IOS3BJOwUMftu45j3tIkgnB9gCq0jG6g== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1668925363; a=rsa-sha256; cv=none; b=Qhvx2i/Oi0u7GiNQaxBh+kFDqlAQilgcTZJ4Txe21E+OhgkmVC0uOv48sVf5Tjc/b88ifB 51mP/ORBantfkovSJCssMlZpDWqGRiGEIO66ats6zRHUvdeK/FL4GVlHBCLICRfHOYXKSU 9ts93skLEZBqNvQxPbmE5A6K2qSJ0qImK/hqLpacn1ntjmUnDv39yqSUQbuxUsMsPfc/kI VNqJlTmMI0jFydE+9/oWbBDLQZkb+kl7PGMC7SPtel9II8hFUX+tgXao5smHTbHtLI4YFs //NLkA83fHakdj2Kq1W1s+1/IpZdWyPkrd+WkzNzuWcjfpPqUdoxVI5qlLU9SA== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4NFL6W3P4MzFYt; Sun, 20 Nov 2022 06:22:43 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 2AK6Mh7T002742; Sun, 20 Nov 2022 06:22:43 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 2AK6MhQ6002741; Sun, 20 Nov 2022 06:22:43 GMT (envelope-from git) Date: Sun, 20 Nov 2022 06:22:43 GMT Message-Id: <202211200622.2AK6MhQ6002741@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Yuri Victorovich Subject: git: d1f0b3a88a0f - main - devel/py-objsize: New port: Calculate the total size of the object subtree in bytes (deep size) List-Id: Commit messages for all branches of the ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-ports-all@freebsd.org X-BeenThere: dev-commits-ports-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: yuri X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: d1f0b3a88a0f3c9c770a88db196c0833172f0b7f Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by yuri: URL: https://cgit.FreeBSD.org/ports/commit/?id=d1f0b3a88a0f3c9c770a88db196c0833172f0b7f commit d1f0b3a88a0f3c9c770a88db196c0833172f0b7f Author: Yuri Victorovich AuthorDate: 2022-11-20 04:40:48 +0000 Commit: Yuri Victorovich CommitDate: 2022-11-20 06:22:39 +0000 devel/py-objsize: New port: Calculate the total size of the object subtree in bytes (deep size) --- devel/Makefile | 1 + devel/py-objsize/Makefile | 19 +++++++++++++++++++ devel/py-objsize/distinfo | 3 +++ devel/py-objsize/pkg-descr | 7 +++++++ 4 files changed, 30 insertions(+) diff --git a/devel/Makefile b/devel/Makefile index 6a11e471dc56..b048e7bbdb81 100644 --- a/devel/Makefile +++ b/devel/Makefile @@ -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 diff --git a/devel/py-objsize/Makefile b/devel/py-objsize/Makefile new file mode 100644 index 000000000000..aa2c44c54bb3 --- /dev/null +++ b/devel/py-objsize/Makefile @@ -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 diff --git a/devel/py-objsize/distinfo b/devel/py-objsize/distinfo new file mode 100644 index 000000000000..0cda7534ae61 --- /dev/null +++ b/devel/py-objsize/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1668908152 +SHA256 (objsize-0.6.1.tar.gz) = 56482d468acdc445c7da05a56e5b05ad38e5c0a27a761b5d8c538df494e19d2a +SIZE (objsize-0.6.1.tar.gz) = 8225 diff --git a/devel/py-objsize/pkg-descr b/devel/py-objsize/pkg-descr new file mode 100644 index 000000000000..31c26c76ac4c --- /dev/null +++ b/devel/py-objsize/pkg-descr @@ -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.