1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-23 09:10:43 +00:00

Add p5-Devel-Leak 0.02,

utility for looking for perl objects that
are not reclaimed.
This commit is contained in:
Sergey Skvortsov 2002-09-09 12:08:07 +00:00
parent 3932f696cc
commit ef7fc9de4d
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=65912
6 changed files with 49 additions and 0 deletions

View File

@ -446,6 +446,7 @@
SUBDIR += p5-DateConvert
SUBDIR += p5-Devel-Constants
SUBDIR += p5-Devel-DProf
SUBDIR += p5-Devel-Leak
SUBDIR += p5-Devel-Modlist
SUBDIR += p5-Devel-Peek
SUBDIR += p5-Devel-Profiler

View File

@ -0,0 +1,22 @@
# New ports collection makefile for: Devel-Leak
# Date created: 09 September 2002
# Whom: Sergey Skvortsov <skv@protey.ru>
#
# $FreeBSD$
#
PORTNAME= Devel-Leak
PORTVERSION= 0.02
CATEGORIES= devel perl5
MASTER_SITES= ${MASTER_SITE_PERL_CPAN}
MASTER_SITE_SUBDIR= Devel
PKGNAMEPREFIX= p5-
MAINTAINER= skv@FreeBSD.org
PERL_CONFIGURE= yes
MAN3PREFIX= ${PREFIX}/lib/perl5/${PERL_VERSION}
MAN3= Devel::Leak.3
.include <bsd.port.mk>

View File

@ -0,0 +1 @@
MD5 (Devel-Leak-0.02.tar.gz) = f4dece7cfb09a08840139ee3f54f84a0

View File

@ -0,0 +1 @@
Utility for looking for perl objects that are not reclaimed

View File

@ -0,0 +1,17 @@
Devel::Leak has two functions NoteSV and CheckSV.
NoteSV walks the perl internal table of allocated SVs (scalar values) -
(which actually contains arrays and hashes too), and records their
addresses in a table. It returns a count of these "things", and stores
a pointer to the table (which is obtained from the heap using malloc())
in its argument.
CheckSV is passed argument which holds a pointer to a table created by
NoteSV. It re-walks the perl-internals and calls sv_dump() for any
"things" which did not exist when NoteSV was called. It returns a count
of the number of "things" now allocated.
WWW: http://search.cpan.org/search?dist=Devel-Leak
-- Sergey Skvortsov
skv@FreeBSD.org

View File

@ -0,0 +1,7 @@
lib/perl5/site_perl/%%PERL_VER%%/%%PERL_ARCH%%/auto/Devel/Leak/.packlist
lib/perl5/site_perl/%%PERL_VER%%/%%PERL_ARCH%%/Devel/Leak.pm
lib/perl5/site_perl/%%PERL_VER%%/%%PERL_ARCH%%/auto/Devel/Leak/Leak.bs
lib/perl5/site_perl/%%PERL_VER%%/%%PERL_ARCH%%/auto/Devel/Leak/Leak.so
@dirrm lib/perl5/site_perl/%%PERL_VER%%/%%PERL_ARCH%%/auto/Devel/Leak
@unexec rmdir %D/lib/perl5/site_perl/%%PERL_VER%%/%%PERL_ARCH%%/Devel 2>/dev/null || true
@unexec rmdir %D/lib/perl5/site_perl/%%PERL_VER%%/%%PERL_ARCH%%/auto/Devel 2>/dev/null || true