Thursday, June 07, 2007

Perl Code Profiling - Apache::DProf

  1. In
       # The Apache::DProf requires this
    use Apache::Registry;

  2. In conf:
       PerlModule Apache::DProf

  3. Make sure the logs directory has write rights

  4. Restart Apache & do whatever you want in the browser page

  5. Stop Apache (only then the tmon.out will get complete output)

  6. Go to the directory where tmon is (logs/dprof//) and run dprofpp

Refer: Code Profiling Techniques