Skip to content

Instantly share code, notes, and snippets.

@dolmen
Last active December 11, 2015 11:48
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dolmen/4596262 to your computer and use it in GitHub Desktop.
Save dolmen/4596262 to your computer and use it in GitHub Desktop.
Dist::Zilla profiling
# Get the module list
PROFILING=-d:TraceUse
# Profile with Devel::NYTProf
PROFILING=-d:NYTProf

Quick dzil launch hack:

perl $PROFILING -Ilib -MDist::Zilla -e '$Dist::Zilla::VERSION=$Dist::Zilla::Plugin::GatherDir::VERSION=4.300030; require "bin/dzil"' nop

Real dzil build & launch:

dzil build --in .build/profiling && perl $PROFILING -I.build/profiling/lib .build/profiling/bin/dzil nop
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment