git: 39eb9db143e8 - main - graphics/py-gprof2dot: Add py-gprof2dot 2022.7.29

From: Po-Chuan Hsieh <sunpoet_at_FreeBSD.org>
Date: Sat, 27 Aug 2022 10:30:46 UTC
The branch main has been updated by sunpoet:

URL: https://cgit.FreeBSD.org/ports/commit/?id=39eb9db143e8415db6bbeb403ebc71b6a779362a

commit 39eb9db143e8415db6bbeb403ebc71b6a779362a
Author:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
AuthorDate: 2022-08-27 10:10:29 +0000
Commit:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
CommitDate: 2022-08-27 10:10:29 +0000

    graphics/py-gprof2dot: Add py-gprof2dot 2022.7.29
    
    gprof2dot is a Python script to convert the output from many profilers into a
    dot graph.
    
    It can:
    - read output from:
      - Linux perf
      - Valgrind's callgrind tool
      - oprofile
      - sysprof
      - xperf
      - VTune Amplifier XE
      - Very Sleepy
      - python profilers
      - Java's HPROF
      - prof, gprof
      - DTrace
    - prune nodes and edges below a certain threshold;
    - use an heuristic to propagate time inside mutually recursive functions;
    - use color efficiently to draw attention to hot-spots;
    - work on any platform where Python and Graphviz is available, i.e, virtually
      anywhere.
    
    WWW: https://github.com/jrfonseca/gprof2dot
---
 graphics/Makefile               |  1 +
 graphics/py-gprof2dot/Makefile  | 18 ++++++++++++++++++
 graphics/py-gprof2dot/distinfo  |  3 +++
 graphics/py-gprof2dot/pkg-descr | 23 +++++++++++++++++++++++
 4 files changed, 45 insertions(+)

diff --git a/graphics/Makefile b/graphics/Makefile
index 5fc713d14b0d..f0f352ce062e 100644
--- a/graphics/Makefile
+++ b/graphics/Makefile
@@ -859,6 +859,7 @@
     SUBDIR += py-glfw
     SUBDIR += py-glooey
     SUBDIR += py-gphoto2
+    SUBDIR += py-gprof2dot
     SUBDIR += py-graphlib-backport
     SUBDIR += py-graphviz
     SUBDIR += py-graphy
diff --git a/graphics/py-gprof2dot/Makefile b/graphics/py-gprof2dot/Makefile
new file mode 100644
index 000000000000..f047a41388d4
--- /dev/null
+++ b/graphics/py-gprof2dot/Makefile
@@ -0,0 +1,18 @@
+PORTNAME=	gprof2dot
+PORTVERSION=	2022.7.29
+CATEGORIES=	graphics python
+MASTER_SITES=	CHEESESHOP
+PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
+
+MAINTAINER=	sunpoet@FreeBSD.org
+COMMENT=	Generate a dot graph from the output of several profilers
+
+LICENSE=	LGPL3+
+LICENSE_FILE=	${WRKSRC}/LICENSE.txt
+
+USES=		python:3.7+
+USE_PYTHON=	autoplist concurrent distutils
+
+NO_ARCH=	yes
+
+.include <bsd.port.mk>
diff --git a/graphics/py-gprof2dot/distinfo b/graphics/py-gprof2dot/distinfo
new file mode 100644
index 000000000000..4432e2958397
--- /dev/null
+++ b/graphics/py-gprof2dot/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1660576690
+SHA256 (gprof2dot-2022.7.29.tar.gz) = 45b4d298bd36608fccf9511c3fd88a773f7a1abc04d6cd39445b11ba43133ec5
+SIZE (gprof2dot-2022.7.29.tar.gz) = 33948
diff --git a/graphics/py-gprof2dot/pkg-descr b/graphics/py-gprof2dot/pkg-descr
new file mode 100644
index 000000000000..a074f2120756
--- /dev/null
+++ b/graphics/py-gprof2dot/pkg-descr
@@ -0,0 +1,23 @@
+gprof2dot is a Python script to convert the output from many profilers into a
+dot graph.
+
+It can:
+- read output from:
+  - Linux perf
+  - Valgrind's callgrind tool
+  - oprofile
+  - sysprof
+  - xperf
+  - VTune Amplifier XE
+  - Very Sleepy
+  - python profilers
+  - Java's HPROF
+  - prof, gprof
+  - DTrace
+- prune nodes and edges below a certain threshold;
+- use an heuristic to propagate time inside mutually recursive functions;
+- use color efficiently to draw attention to hot-spots;
+- work on any platform where Python and Graphviz is available, i.e, virtually
+  anywhere.
+
+WWW: https://github.com/jrfonseca/gprof2dot