laziness, impatience, and hubris | |
PerlMonks |
Re: Profile compilationby kcott (Archbishop) |
on Aug 30, 2017 at 03:50 UTC ( [id://1198317]=note: print w/replies, xml ) | Need Help?? |
G'day meetraz, If you put this line
before any other INIT blocks, your "app" should terminate before any runtime processing occurs. I put together this quick and dirty test script (pm_1198271_prof_compile_only.pl):
Running that by itself:
Then doing as ++choroba suggested:
View "nytprof/index.html" in the browser of your choice. The third table, "Source Code Files — ordered by exclusive time then name", should show what you're looking for, longest compile time first. By using 'INIT { exit }', the profile results won't contain any runtime data; and it's just one line to remove when you've finished. — Ken
In Section
Seekers of Perl Wisdom
|
|