Slash Boxes
NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.

All the Perl that's Practical to Extract and Report

The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
More | Login | Reply
Loading... please wait.
  • I think it was Ilya; but the format of tmon.out is unfortunately not documented. May I point you at my journal entry on Apache::DProf? []
    • Apache::DProf is ok, but it's not really a very good tool for the simple reason that you can't pin down individual handlers. Everything gets lumped into one big tmon.out per child.

      This means that you have to conduct large scale tests to get an average out of it instead, which is annoying when all you want to do is profile one run.

      The other problem (for me) is that Apache::DProf made my apache dump core on the page I was really interested in. Lacking the debugging skills needed, I left it at that. :-(

      Overall, I found that the simplest solution was to write my code so that it didn't depend upon apache at all. And the bonus is that I now have a script to access the web based functionality from the command line. And because it's using the same modules I know its doing the same thing.

      BTW, after writing the script, I immediately profiled it and spotted my performance problem straight away: 4100 RPC calls per request to the back end! Needless to say, that got optimized out sharpish!

      • Devel::DProf is a bit core dump happy anyway, so I'm not surprised it did that within Apache. It got a lot better in 5.6.1, and I think it'll get better still for 5.8. Lets hope so anyway.