Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 22 Feb 2017 20:18:10 +0000 (UTC)
From:      Tobias Kortkamp <tobik@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r434637 - in head/devel: . memleax
Message-ID:  <201702222018.v1MKIAcZ052034@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: tobik
Date: Wed Feb 22 20:18:10 2017
New Revision: 434637
URL: https://svnweb.freebsd.org/changeset/ports/434637

Log:
  New port: devel/memleax
  
  Memleax debugs memory leaks of running processes by attaching to them,
  without recompiling or restarting. It hooks the target process's invocation
  of memory allocation and free and reports the memory blocks which live
  long enough as memory leak, in real time.
  
  It is convenient to use, and suitable for production environments.
  There is no need to recompile the program or restart the target process.
  You can run memleax to monitor the target process, wait for the real-time
  memory leak report, and then kill it with ctrl-c to stop monitoring.
  
  WWW: https://github.com/WuBingzheng/memleax
  
  PR:		217105
  Submitted by:	Guy Tabrar <guy.tabrar@me.com>
  Approved by:	lme (mentor)
  Differential Revision:	https://reviews.freebsd.org/D9725

Added:
  head/devel/memleax/
  head/devel/memleax/Makefile   (contents, props changed)
  head/devel/memleax/distinfo   (contents, props changed)
  head/devel/memleax/pkg-descr   (contents, props changed)
Modified:
  head/devel/Makefile

Modified: head/devel/Makefile
==============================================================================
--- head/devel/Makefile	Wed Feb 22 19:57:45 2017	(r434636)
+++ head/devel/Makefile	Wed Feb 22 20:18:10 2017	(r434637)
@@ -1593,6 +1593,7 @@
     SUBDIR += mcpp
     SUBDIR += mdds
     SUBDIR += mdds0
+    SUBDIR += memleax
     SUBDIR += menhir
     SUBDIR += mercator
     SUBDIR += mercurial

Added: head/devel/memleax/Makefile
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/devel/memleax/Makefile	Wed Feb 22 20:18:10 2017	(r434637)
@@ -0,0 +1,34 @@
+# $FreeBSD$
+
+PORTNAME=	memleax
+PORTVERSION=	1.0.2
+DISTVERSIONPREFIX=	v
+CATEGORIES=	devel
+
+MAINTAINER=	guy.tabrar@me.com
+COMMENT=	Debug memory leaks of running processes
+
+LICENSE=	GPLv2
+LICENSE_FILE=	${WRKSRC}/LICENSE
+
+LIB_DEPENDS=	libunwind.so:devel/libunwind
+BUILD_DEPENDS=	${LOCALBASE}/lib/libdwarf.a:devel/libdwarf
+
+ONLY_FOR_ARCHS=	amd64
+
+USE_GITHUB=	yes
+GH_ACCOUNT=	WuBingzheng
+
+USES=		gmake
+HAS_CONFIGURE=	yes
+CONFIGURE_ARGS=	--prefix=${PREFIX} --disable-debug_line
+ALL_TARGET=	memleax
+
+PLIST_FILES=	bin/memleax \
+		man/man1/memleax.1.gz
+
+do-install:
+	${INSTALL_PROGRAM} ${WRKSRC}/memleax ${STAGEDIR}${PREFIX}/bin
+	${INSTALL_MAN} ${WRKSRC}/memleax.1 ${STAGEDIR}${PREFIX}/man/man1
+
+.include <bsd.port.mk>

Added: head/devel/memleax/distinfo
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/devel/memleax/distinfo	Wed Feb 22 20:18:10 2017	(r434637)
@@ -0,0 +1,3 @@
+TIMESTAMP = 1487098632
+SHA256 (WuBingzheng-memleax-v1.0.2_GH0.tar.gz) = 6a3b2f0b2ee750151bd7605b7f933b51f3776571f06448a77a08df84b37ef0a1
+SIZE (WuBingzheng-memleax-v1.0.2_GH0.tar.gz) = 30160

Added: head/devel/memleax/pkg-descr
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/devel/memleax/pkg-descr	Wed Feb 22 20:18:10 2017	(r434637)
@@ -0,0 +1,11 @@
+Memleax debugs memory leaks of running processes by attaching to them,
+without recompiling or restarting. It hooks the target process's invocation
+of memory allocation and free and reports the memory blocks which live
+long enough as memory leak, in real time. 
+
+It is convenient to use, and suitable for production environments.
+There is no need to recompile the program or restart the target process.
+You can run memleax to monitor the target process, wait for the real-time
+memory leak report, and then kill it with ctrl-c to stop monitoring.
+
+WWW: https://github.com/WuBingzheng/memleax



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201702222018.v1MKIAcZ052034>