Updating devel/p5-Devel-NYTProf from 2.10 to 3.01

pkgsrc changes:
- Adjusting dependencies
- Adding optional dependency to graphviz (for generating call graphs)

Upstream changes:
Changes in Devel::NYTProf 3.01 (svn r1005) 28th Dec 2009
  Fixed (removed) use of vfscanf() which broke on Windows.
  Fixed version number in nytprofmerge.

  Added documentation to nytprofcg and nytprofmerge.

  Updated NYTProf docs, including noting major contributors.
  Updated docs to fix assorted typos, thanks to Jonathan Yu.
  Updated nytprofcsv documentation.

Changes in Devel::NYTProf 3.00 (svn r998) 24th Dec 2009
  Note: The file format has changed. Old files can't be read.

  Fixed (rare) overflow bug for 32bit perls.
  Fixed discarding of (rare) negative intervals.
  Fixed risk of infinite recursion if trace enabled and
    $SIG{__WARN__} was set to a code reference.
  Fixed subroutine recursion depth measurement.
  Fixed missing embedded eval source code for some older perls.
  Fixed assorted compiler warnings for various configurations.

  Changed ReadStream SUB_LINE_RANGE tag to SUB_INFO.

  Added log=F option to write trace log to a file.
  Added warning when reading a file with a minor version higher
    than expected.

  Added slowops=N option which enables profiling of potentially slow
    perl opcodes (e.g., system calls and regexs). They're treated like xsubs.
    slowops=0 disables profiling of 'slowops'
    slowops=1 puts timings into one package ("CORE::", eg CORE::sleep)
    slowops=2 (the defaut) puts timings into into the package that made the
    call, e.g., "Foo::CORE:sleep" (note the single colon).

  Added sigexit=1 option to enable a useable profile when the process
    exits due to a signals (catches INT HUP PIPE BUS SEGV by default)
    Can also do sigexit=TRAP,ABRT,SYS,... to hook specific signals.
    Thanks to Andrew Sterling Hanenkamp for the seed of this idea.

  Added forkdepth=N option to enable profiling to be turned off after N
    generations of fork().

  Added nameevals=0 and nameanonsubs=0 options to make NYTProf less
    visible to code that may assume the default perl naming behaviour.
    Note that using these will limit the usefulness of reports.

  Added initial support for profiling PostgreSQL PL/Perl code
    via Devel::NYTProf::PgPLPerl module.

  Added nytprofmerge utility:
    Reads multiple nytprof data files and writes a new merged file.
    Many thanks to Nicholas Clark!

Changes to subroutine profiler:

  Rewritten. Captures more data more accurately and robustly.
  Added profiling of calls to xsubs that exit via an exception.
  Added profiling of goto ⊂
  Added recording the name of the calling subroutine to enable proper
    linking of call trees. Previously only the calling file and line
    were recorded. (This is more significant than it sounds :)
  Added docs describing how the subroutine profiler works.
  Multiple BEGIN blocks (including "use") within a package are now
    distinguished by appending the number of the line they start on
    (for perl 5.8.9+ and 5.10.1+)

Changes to nytprofhtml:

  Added interactive treemap view of package and subroutine times.
    Left-click to zoom in (drill-down) one level, right-click to zoom out.

  Added generation of GraphViz dot language files to visualize
    the call graph. A top-level link on the index page provides an
    inter-package graph, and per-source-file links provide a graph
    of sub calls in to, out of, and between the subs in the file.
    See http://en.wikipedia.org/wiki/Graphviz

  Added columns to the main source code reports to show
    a count of sub calls and time spent in those calls.

  Assorted cosmetic improvements.
  Changed colors on report pages to be less saturated.
This commit is contained in:
sno 2010-01-16 16:45:18 +00:00
parent df8ab88ace
commit 42af114850
3 changed files with 24 additions and 6 deletions

View file

@ -1,7 +1,7 @@
# $NetBSD: Makefile,v 1.4 2009/07/18 21:40:49 sno Exp $
# $NetBSD: Makefile,v 1.5 2010/01/16 16:45:18 sno Exp $
#
DISTNAME= Devel-NYTProf-2.10
DISTNAME= Devel-NYTProf-3.01
PKGNAME= p5-${DISTNAME}
CATEGORIES= devel perl5
MASTER_SITES= ${MASTER_SITE_PERL_CPAN:=Devel/}
@ -13,6 +13,12 @@ LICENSE= ${PERL5_LICENSE}
PKG_DESTDIR_SUPPORT= user-destdir
REPLACE_PERL+= perftest.pl lib/Devel/NYTProf/FileHandle.pm
DEPENDS+= {perl>=5.10.1,p5-Test-Simple>=0.84}:../../devel/p5-Test-Simple
.include "options.mk"
PERL5_PACKLIST= auto/Devel/NYTProf/.packlist
.include "../../devel/zlib/buildlink3.mk"

View file

@ -1,5 +1,5 @@
$NetBSD: distinfo,v 1.4 2009/07/18 21:40:49 sno Exp $
$NetBSD: distinfo,v 1.5 2010/01/16 16:45:18 sno Exp $
SHA1 (Devel-NYTProf-2.10.tar.gz) = 32ca76211aa5ca977e79bfb87ec7277d827b1b60
RMD160 (Devel-NYTProf-2.10.tar.gz) = 2c5ea3d3eff239db3b592dc90baadadcc615141f
Size (Devel-NYTProf-2.10.tar.gz) = 197754 bytes
SHA1 (Devel-NYTProf-3.01.tar.gz) = 071e41fb2a3c0f027e5a4d9fb13a6a6e4d197b02
RMD160 (Devel-NYTProf-3.01.tar.gz) = 41dcad7157615164410eeac4b3fe2d01871b212c
Size (Devel-NYTProf-3.01.tar.gz) = 383195 bytes

View file

@ -0,0 +1,12 @@
# $NetBSD: options.mk,v 1.1 2010/01/16 16:45:18 sno Exp $
PKG_OPTIONS_VAR= PKG_OPTIONS.p5-Devel-NYTProf
PKG_SUPPORTED_OPTIONS= graphviz
PKG_SUGGESTED_OPTIONS= # empty
.include "../../mk/bsd.options.mk"
.if !empty(PKG_OPTIONS:Mgraphviz)
DEPENDS+= graphviz>=2:../../graphics/graphviz
.endif