castanyes blaves

Random ramblings about some random stuff, and things; but more stuff than things -- all in a mesmerizing and kaleidoscopic soapbox-like flow of words.

12/15/2008

 

NYTProf and mod_perl

'A great new profiler which works with mod_perl - Devel::NYTProf' - MARC
Using it in mod_perl is as easy as adding this to your httpd.conf (before you load any other Perl modules): PerlModule Devel::NYTProf::Apache It is worth starting apache in single process mode otherwise it writes to multiple log files: apachectl -X Once you've finished using your code (in order to generate stats), you can generate the reports with: nytprofhtml -f /tmp/nytprof.$PID.out If you've got your Perl modules in some directory other than the compiled in @INC, you can use:  nytprofhtml -f /tmp/nytprof.$PID.out -lib /path/to/libs I use a framework which autogenerates a number of classes, so I had to edit nytprofhtml to add a few lines in order to initialise my framework before running the report. Try this out - it is super easy, and very very useful

Comments: Post a Comment

Subscribe to Post Comments [Atom]





<< Home

Archives

200409   200412   200501   200502   200503   200504   200505   200506   200507   200508   200509   200510   200511   200512   200601   200602   200603   200604   200605   200606   200607   200608   200609   200610   200611   200612   200701   200702   200703   200704   200705   200707   200708   200709   200710   200711   200712   200801   200802   200803   200804   200805   200806   200807   200808   200809   200810   200811   200812   200901   200902   200903   200904   200905   200906   200907   200908   200909   200912   201001   201002   201003   201004   201007   201009   201011   201102  

This page is powered by Blogger. Isn't yours?

Subscribe to Posts [Atom]