Re: Benchmarking a script that can't be executed form the command line

From: James Willmore (jwillmore_at_remove.adelphia.net)
Date: 12/31/03


Date: Wed, 31 Dec 2003 04:24:10 GMT

On Tue, 30 Dec 2003 22:07:53 GMT
Erik Tank <jundy@jundy.com> wrote:

> 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?

There are several logging module that could aid you in trying to find
out what's going on. One of them is Log::TraceMessages. Put this
together with Time::HiRes, and you could see what's going on.

Another option is to re-think your code to allow it to be run from the
command line - you may run into this type of situation again.

HTH

-- 
Jim
Copyright notice: all code written by the author in this post is
 released under the GPL. http://www.gnu.org/licenses/gpl.txt 
for more information.
a fortune quote ...
A "No" uttered from deepest conviction is better and greater than
a "Yes" merely uttered to please, or what is worse, to avoid
trouble.   -- Mahatma Ghandi 


Relevant Pages

  • Re: Wait for background processes to complete
    ... To be able to execute commands in the background and wait for their ... The documentation I am referring to is http://perldoc.perl.org/. ... You can run a command in the background with: ... There is a general problem with perl documentation: ...
    (comp.lang.perl.misc)
  • Re: Perl For Amateur Computer Programmers
    ... >professional computer programmers could use with the same ease as Basic. ... >Perl For Amateur Computer Programmers ... Also, taking into account that you're appealing to "scientists", it ... Also, as a side note, you seem to use the noun "command" in a naive ...
    (comp.lang.perl.misc)
  • Obtaining complete Unix command line that evoked script as string
    ... If there is a more appropriate list for this, let me know; the other perl lists I've seen seem to specialised for this. ... Note this is not just the arguments of the call to the script, but everything including pipes and redirects, etc., e.g. ... Ideally the perl interpreter would grab the complete command line as its evoked and I'd access this via a variable. ...
    (perl.beginners)
  • Thanks for the comments Jan. 25, 2006
    ... "shadow" operating system which is running behind Windows. ... Perl can then collect data from that program and do ... that by sending longer strings etc. to the Windows clipboard and then having ... SendKeysuse a Ctrl V command to paste the information to the text editor ...
    (comp.lang.perl.misc)
  • Re: debugger exiting
    ... strict and warnings pragmas. ... I think portraying Perl as a command-line tool limits it to fewer platforms than ... work only as a Unix shell command line. ...
    (perl.beginners)