pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/devel/p5-Devel-Leak-Object This module provides tracki...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/f8b97c9f0d20
branches:  trunk
changeset: 555205:f8b97c9f0d20
user:      sno <sno%pkgsrc.org@localhost>
date:      Wed Feb 25 21:36:51 2009 +0000

description:
This module provides tracking of objects, for the purpose of detecting
memory leaks due to circular references or innappropriate caching schemes.

Object tracking can be enabled on a per object basis. Any objects thus
tracked are remembered until DESTROYed; details of any objects left are
printed out to stderr at END-time.

  use Devel::Leak::Object qw(GLOBAL_bless);

This form overloads bless to track construction and destruction of all
objects. As an alternative, by importing bless, you can just track the
objects of the caller code that is doing the use.

If you use GLOBAL_bless to overload the bless function, please note that it
will ONLY apply to bless for modules loaded AFTER Devel::Leak::Object has
enabled the hook.

diffstat:

 devel/p5-Devel-Leak-Object/DESCR    |  16 ++++++++++++++++
 devel/p5-Devel-Leak-Object/Makefile |  17 +++++++++++++++++
 devel/p5-Devel-Leak-Object/distinfo |   5 +++++
 3 files changed, 38 insertions(+), 0 deletions(-)

diffs (50 lines):

diff -r 07eb6dd72a1a -r f8b97c9f0d20 devel/p5-Devel-Leak-Object/DESCR
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/p5-Devel-Leak-Object/DESCR  Wed Feb 25 21:36:51 2009 +0000
@@ -0,0 +1,16 @@
+This module provides tracking of objects, for the purpose of detecting
+memory leaks due to circular references or innappropriate caching schemes.
+
+Object tracking can be enabled on a per object basis. Any objects thus
+tracked are remembered until DESTROYed; details of any objects left are
+printed out to stderr at END-time.
+
+  use Devel::Leak::Object qw(GLOBAL_bless);
+
+This form overloads bless to track construction and destruction of all
+objects. As an alternative, by importing bless, you can just track the
+objects of the caller code that is doing the use.
+
+If you use GLOBAL_bless to overload the bless function, please note that it
+will ONLY apply to bless for modules loaded AFTER Devel::Leak::Object has
+enabled the hook.
diff -r 07eb6dd72a1a -r f8b97c9f0d20 devel/p5-Devel-Leak-Object/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/p5-Devel-Leak-Object/Makefile       Wed Feb 25 21:36:51 2009 +0000
@@ -0,0 +1,17 @@
+# $NetBSD: Makefile,v 1.1 2009/02/25 21:36:51 sno Exp $
+
+DISTNAME=      Devel-Leak-Object-0.92
+PKGNAME=       p5-${DISTNAME}
+CATEGORIES=    devel perl5
+MASTER_SITES=  ${MASTER_SITE_PERL_CPAN:=Devel/}
+
+MAINTAINER=    pkgsrc-users%NetBSD.org@localhost
+HOMEPAGE=      http://search.cpan.org/perldoc?Devel::Devel::Leak
+COMMENT=       perl module to detect leaks of objects
+
+PERL5_PACKLIST= auto/Devel/Leak/Object/.packlist
+
+PKG_DESTDIR_SUPPORT=   user-destdir
+
+.include "../../lang/perl5/module.mk"
+.include "../../mk/bsd.pkg.mk"
diff -r 07eb6dd72a1a -r f8b97c9f0d20 devel/p5-Devel-Leak-Object/distinfo
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/p5-Devel-Leak-Object/distinfo       Wed Feb 25 21:36:51 2009 +0000
@@ -0,0 +1,5 @@
+$NetBSD: distinfo,v 1.1 2009/02/25 21:36:51 sno Exp $
+
+SHA1 (Devel-Leak-Object-0.92.tar.gz) = 9f274eb406b130d8391310dfe20c9bdfb39311b7
+RMD160 (Devel-Leak-Object-0.92.tar.gz) = a30356b9e813a2e31d28cabf2db24da9156097eb
+Size (Devel-Leak-Object-0.92.tar.gz) = 23249 bytes



Home | Main Index | Thread Index | Old Index