Re: Benchmarking a script that can't be executed form the command line
From: Ragnar Hafstaš (gnari_at_simnet.is)
Date: 12/30/03
- Next message: Matt Garrish: "Re: tutorial"
- Previous message: Ragnar Hafstaš: "Re: problem with hash & sort array"
- In reply to: Erik Tank: "Benchmarking a script that can't be executed form the command line"
- Next in thread: James Willmore: "Re: Benchmarking a script that can't be executed form the command line"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Tue, 30 Dec 2003 22:44:55 -0000
"Erik Tank" <jundy@jundy.com> wrote in message
news:f89774d4a5b2529253d0c835d28915b2@news.teranews.com...
> I have written a web based help desk/billing/anything else my
> employeer wants it to be system using Perl. It's been in production
> over 1 year now and working well but some things are beginning to slow
> down. I am trying to figure out where the slow down is occure.
>
> With other scripts I have always used DProf/SmallProf or something
> like that but the problem here is there are several security
> precautions that make it (so far) unexecutable from the command line.
> To clarify I can execute it but I simply get a redirect to the login
> script.
>
> Any thoughts/suggestions?
yes. plain old log files
make a debug() function that prints timestamped messages to a log file, and
pepper calls to it all over your
application. this will help you locate problem areas. to disable it change
the function, or change a config variable
or just perl -pi -e 's/debug\(/#debug(/g' src/*.pl
gnari
- Next message: Matt Garrish: "Re: tutorial"
- Previous message: Ragnar Hafstaš: "Re: problem with hash & sort array"
- In reply to: Erik Tank: "Benchmarking a script that can't be executed form the command line"
- Next in thread: James Willmore: "Re: Benchmarking a script that can't be executed form the command line"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|