summaryrefslogtreecommitdiff
path: root/devel
diff options
context:
space:
mode:
authorsno <sno@pkgsrc.org>2009-02-25 21:36:51 +0000
committersno <sno@pkgsrc.org>2009-02-25 21:36:51 +0000
commitab9d39de6fcccea9ac69e6068299fed818e72f12 (patch)
tree88637dea0235c49138405e6bce4ff82252b7bf71 /devel
parentfa7ff50c4d4fa6cb30b9c96261eeecad70b87dfb (diff)
downloadpkgsrc-ab9d39de6fcccea9ac69e6068299fed818e72f12.tar.gz
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 (limited to 'devel')
-rw-r--r--devel/p5-Devel-Leak-Object/DESCR16
-rw-r--r--devel/p5-Devel-Leak-Object/Makefile17
-rw-r--r--devel/p5-Devel-Leak-Object/distinfo5
3 files changed, 38 insertions, 0 deletions
diff --git a/devel/p5-Devel-Leak-Object/DESCR b/devel/p5-Devel-Leak-Object/DESCR
new file mode 100644
index 00000000000..a1904b1638e
--- /dev/null
+++ b/devel/p5-Devel-Leak-Object/DESCR
@@ -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 --git a/devel/p5-Devel-Leak-Object/Makefile b/devel/p5-Devel-Leak-Object/Makefile
new file mode 100644
index 00000000000..7e72d0f96fa
--- /dev/null
+++ b/devel/p5-Devel-Leak-Object/Makefile
@@ -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
+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 --git a/devel/p5-Devel-Leak-Object/distinfo b/devel/p5-Devel-Leak-Object/distinfo
new file mode 100644
index 00000000000..f437bd9a564
--- /dev/null
+++ b/devel/p5-Devel-Leak-Object/distinfo
@@ -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