James, Profiling is generally done with Devel::Profile.
http://search.cpan.org/~jaw/Devel-Profile-1.05/Profile.pm Since pmc2c.pl is invoked so many times in the build process improving it's performance would sustainably speed up the overall build time. Cheers, -J -- On Mon, Mar 17, 2008 at 04:31:17PM -0700, James Keenan via RT wrote: > On Mon Jan 09 17:05:30 2006, [EMAIL PROTECTED] wrote: > > Simple profile suggests that pmc2c.pl is spending about 25% of it's > > total execution time loading FindBin. The lib path use of FindBin::Bin > > can be replaced with 'use lib qw( . lib ../lib ../../lib );' while the > > other uses of FindBin::Bin will have be replaced by values that are > > interpolated by genfile(). > > > > > > Joshua, > > Do you know if this profiling is still needed? > > Here's where I find FindBin in files underlying tools/build/pmc2c.pl: > > $ fnsa lib/Parrot/Pmc2c/ '*.pm' | xargs grep -in FindBin > lib/Parrot/Pmc2c/Pmc2cMain.pm:6:use FindBin; > lib/Parrot/Pmc2c/Pmc2cMain.pm:91: ( ".", "$FindBin::Bin/../..", > "$FindBin::Bin/../../src/pmc/" ); > lib/Parrot/Pmc2c/Pmc2cMain.pm:103: > $self->dump_vtable("$FindBin::Bin/../../src/vtable.tbl"); > > If so, can you post your standard profiling command(s)? > > Thank you very much. > kid51
pgpXawHac3bVa.pgp
Description: PGP signature