From owner-svn-ports-head@freebsd.org Wed Feb 22 20:18:11 2017 Return-Path: Delivered-To: svn-ports-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id CE90CCE69F2; Wed, 22 Feb 2017 20:18:11 +0000 (UTC) (envelope-from tobik@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id A6A021FC8; Wed, 22 Feb 2017 20:18:11 +0000 (UTC) (envelope-from tobik@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id v1MKIAgx052038; Wed, 22 Feb 2017 20:18:10 GMT (envelope-from tobik@FreeBSD.org) Received: (from tobik@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id v1MKIAcZ052034; Wed, 22 Feb 2017 20:18:10 GMT (envelope-from tobik@FreeBSD.org) Message-Id: <201702222018.v1MKIAcZ052034@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: tobik set sender to tobik@FreeBSD.org using -f From: Tobias Kortkamp Date: Wed, 22 Feb 2017 20:18:10 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r434637 - in head/devel: . memleax X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 22 Feb 2017 20:18:11 -0000 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 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 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