diff --git a/devel/Makefile b/devel/Makefile index 49f7db94687c..800f003b9d33 100644 --- a/devel/Makefile +++ b/devel/Makefile @@ -3610,6 +3610,7 @@ SUBDIR += py-manuel SUBDIR += py-mccabe SUBDIR += py-meliae + SUBDIR += py-memoryprofiler SUBDIR += py-mercurialserver SUBDIR += py-mez_xml SUBDIR += py-mimeparse diff --git a/devel/py-memoryprofiler/Makefile b/devel/py-memoryprofiler/Makefile new file mode 100644 index 000000000000..e916a7bbef11 --- /dev/null +++ b/devel/py-memoryprofiler/Makefile @@ -0,0 +1,29 @@ +# Created by: Johannes Meixner +# $FreeBSD$ + +PORTNAME= memoryprofiler +PORTVERSION= 0.27 +CATEGORIES= devel python +MASTER_SITES= CHEESESHOP +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} +DISTNAME= memory_profiler-${PORTVERSION} + +MAINTAINER= xmj@chaot.net +COMMENT= Line-by-line and process memory consumption analysis + +LICENSE= BSD + +OPTIONS_DEFINE= PSUTIL +PSUTIL_DESC= Use psutil for better performance +OPTIONSFILE?= ${PORT_DBDIR}/py-${PORTNAME}/options + +.include +.if ${PORT_OPTIONS:MPSUTIL} +RUN_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}-psutil>0:${PORTSDIR}/sysutils/py-psutil +.endif + +USE_PYTHON= 2.6+ +USE_PYDISTUTILS= yes +PYDISTUTILS_PKGNAME= memory_profiler + +.include diff --git a/devel/py-memoryprofiler/distinfo b/devel/py-memoryprofiler/distinfo new file mode 100644 index 000000000000..66409e6ef382 --- /dev/null +++ b/devel/py-memoryprofiler/distinfo @@ -0,0 +1,2 @@ +SHA256 (memory_profiler-0.27.tar.gz) = 9473c29a15456435999bfdd3a14f2d3596c997172d5b34acb6e17fe84fc9585f +SIZE (memory_profiler-0.27.tar.gz) = 12697 diff --git a/devel/py-memoryprofiler/pkg-descr b/devel/py-memoryprofiler/pkg-descr new file mode 100644 index 000000000000..90cebd67bdbd --- /dev/null +++ b/devel/py-memoryprofiler/pkg-descr @@ -0,0 +1,7 @@ +memory_profiler is a python module for monitoring memory consumption of a +process as well as line-by-line analysis of memory consumption for python +programs. It is a pure python module and has the psutil module as optional +(but highly recommended) dependencies. + + +WWW: https://github.com/fabianp/memory_profiler diff --git a/devel/py-memoryprofiler/pkg-plist b/devel/py-memoryprofiler/pkg-plist new file mode 100644 index 000000000000..f7fa8648b456 --- /dev/null +++ b/devel/py-memoryprofiler/pkg-plist @@ -0,0 +1,4 @@ +bin/mprofile +%%PYTHON_SITELIBDIR%%/memory_profiler.py +%%PYTHON_SITELIBDIR%%/memory_profiler.pyo +%%PYTHON_SITELIBDIR%%/memory_profiler.pyc