Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re: Profiling Catalyst

by bennymack (Pilgrim)
on Jul 23, 2007 at 01:00 UTC ( [id://628163]=note: print w/replies, xml ) Need Help??


in reply to Profiling Catalyst

What have you tried so far?

Devel::DProf should work just fine. I prefer Devel::SmallProf myself but they should both do the job.

First, start your Catalyst app with "perl -d:DProf script/myapp_server.pl" then hit it repetitively with something like ab '/usr/sbin/ab -n 1000 "http://127.0.0.1:3000/"'. Then you'll just need to kill the development server with CTRL+C. This should at the very least identify the hotspots on the slow pages you're concerned with.

Replies are listed 'Best First'.
Re^2: Profiling Catalyst
by holli (Abbot) on Jul 23, 2007 at 18:21 UTC
    I've just tried that and it segfaults (Win32, ActivePerl 5.8.8)


    holli, /regexed monk/
      Yeah, that has happened to me too under win32.

      See if you can get any of these to work.

      /J

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://628163]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others rifling through the Monastery: (5)
As of 2024-04-16 20:20 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found