diff --git a/devel/Makefile b/devel/Makefile index cb5a549b96b5..cf9afbd4f70f 100644 --- a/devel/Makefile +++ b/devel/Makefile @@ -2463,6 +2463,7 @@ SUBDIR += p5-Devel-LeakTrace SUBDIR += p5-Devel-LexAlias SUBDIR += p5-Devel-MAT + SUBDIR += p5-Devel-MAT-Dumper SUBDIR += p5-Devel-Messenger SUBDIR += p5-Devel-Modlist SUBDIR += p5-Devel-NYTProf diff --git a/devel/p5-Devel-MAT-Dumper/Makefile b/devel/p5-Devel-MAT-Dumper/Makefile new file mode 100644 index 000000000000..29753ba8cf8c --- /dev/null +++ b/devel/p5-Devel-MAT-Dumper/Makefile @@ -0,0 +1,23 @@ +# Created by: Po-Chuan Hsieh +# $FreeBSD$ + +PORTNAME= Devel-MAT-Dumper +PORTVERSION= 0.37 +CATEGORIES= devel perl5 +MASTER_SITES= CPAN +PKGNAMEPREFIX= p5- + +MAINTAINER= sunpoet@FreeBSD.org +COMMENT= Write a heap dump file for later analysis + +LICENSE= ART10 GPLv1+ +LICENSE_COMB= dual +LICENSE_FILE= ${WRKSRC}/LICENSE + +USE_PERL5= modbuild +USES= perl5 + +post-install: + ${STRIP_CMD} ${STAGEDIR}${PREFIX}/${SITE_ARCH_REL}/auto/Devel/MAT/Dumper/Dumper.so + +.include diff --git a/devel/p5-Devel-MAT-Dumper/distinfo b/devel/p5-Devel-MAT-Dumper/distinfo new file mode 100644 index 000000000000..00326f85dafe --- /dev/null +++ b/devel/p5-Devel-MAT-Dumper/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1532802550 +SHA256 (Devel-MAT-Dumper-0.37.tar.gz) = 3a86d1a01dd765cd2e1d5fe6a2597f538c8ace1fc7bc634e87bebec30742145c +SIZE (Devel-MAT-Dumper-0.37.tar.gz) = 24051 diff --git a/devel/p5-Devel-MAT-Dumper/pkg-descr b/devel/p5-Devel-MAT-Dumper/pkg-descr new file mode 100644 index 000000000000..9e5e6e73f420 --- /dev/null +++ b/devel/p5-Devel-MAT-Dumper/pkg-descr @@ -0,0 +1,16 @@ +Devel::MAT::Dumper provides the memory-dumping function that creates a heap dump +file which can later be read by Devel::MAT::Dumpfile. It provides a single +function which is not exported, which writes a file to the given path. + +The dump file will contain a representation of every SV in Perl's arena, +providing information about pointers between them, as well as other information +about the state of the process at the time it was created. It contains a +snapshot of the process at that moment in time, which can later be loaded and +analysed by various tools using Devel::MAT::Dumpfile. + +This module used to be part of the main Devel::MAT distribution but is now in +its own one so that it can be installed independently on servers or other +locations where perl processes need to inspected but analysis tools can be run +elsewhere. + +WWW: https://metacpan.org/release/Devel-MAT-Dumper diff --git a/devel/p5-Devel-MAT-Dumper/pkg-plist b/devel/p5-Devel-MAT-Dumper/pkg-plist new file mode 100644 index 000000000000..ce67d34c225f --- /dev/null +++ b/devel/p5-Devel-MAT-Dumper/pkg-plist @@ -0,0 +1,3 @@ +%%SITE_ARCH%%/Devel/MAT/Dumper.pm +%%SITE_ARCH%%/auto/Devel/MAT/Dumper/Dumper.so +%%PERL5_MAN3%%/Devel::MAT::Dumper.3.gz