aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPo-Chuan Hsieh <sunpoet@FreeBSD.org>2022-08-27 10:10:29 +0000
committerPo-Chuan Hsieh <sunpoet@FreeBSD.org>2022-08-27 10:10:29 +0000
commit39eb9db143e8415db6bbeb403ebc71b6a779362a (patch)
treee0b6962f1e1d895e8968720e1b0243daff9c2d7e
parenta7a2fec8aaf411675833f4aa7dc9f6d0ace67b4d (diff)
downloadports-39eb9db143e8415db6bbeb403ebc71b6a779362a.tar.gz
ports-39eb9db143e8415db6bbeb403ebc71b6a779362a.zip
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
-rw-r--r--graphics/Makefile1
-rw-r--r--graphics/py-gprof2dot/Makefile18
-rw-r--r--graphics/py-gprof2dot/distinfo3
-rw-r--r--graphics/py-gprof2dot/pkg-descr23
4 files changed, 45 insertions, 0 deletions
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